@SusHill using varargs, you can pass in any number of parameters that are bound to your parameter type, in the function itself, the usage of this parameter is done equal to an array
@SusHill and actually your function could never return -1 from a logical point of view since you have to give an int as parameter which implies there is a least one most digit (well you might be able to pass null)
@geisterfurz007 of course there is since you are comparing and you gotta start somewhere... so when at 323, 3 is the most, now you add 2, still 3 is the most since 2 does not occur more often