Java already knows the type of the method parameter; you don’t need to specify it when you call the method.
nextInt(int 10);
Should be:
nextInt(10);
This is assuming, of course, that you actually have a method nextInt
defined. (I don’t see it in your code sample)