i need help with one exercise in java, i\'m stuck on this error 2 hours maybe. Any help would be great.
Exception in thread \"main\" java.util.InputMismatch
You need to put an int in before you get to imer or cenar:
n=input.nextInt();
This line doesn't appear to be doing anything, either remove it, or put a number in before you put your imer or cenar values in.