Des Robin wrote:... oh and if you want to keep your formatting for code, the edit box has a 'Code' button (next to the Java dropdown). Simply select the code and click the button and it will insert some tags to preserve the formatting.
Ok I have student in a another student class but I am now getting no errors in the code but when I compile and run it I get this error
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Unknown Source)
at java.util.Scanner.next(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at java.util.Scanner.nextInt(Unknown Source)
at StudentMenu.main(StudentMenu.java:31)
Ken O'Sullivan wrote:Ya you are right I dont have any errors now in the code but after it runs I get an error when running it,problem with the scanner and int.

