hi guys i'm new in java and this site too
i was making a small program but this mismatchexception making me angry
i really appreciate if u answer my these stupid questions
1. what is token...
2. Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.nextInt(Unknown Source)[/TEX][/TEX][/TEX]
at java.util.Scanner.nextInt(Unknown Source)
at Main.check(Main.java:63)
at Main.doMain(Main.java:22)
at MiniCinwma.main(MiniCinwma.java:6)
From MiniCinema class
Main mini =new Main();
mini.doMain();// this is error line MiniCinwma.java:6
From then in doMain() i called check()
In check() method
B.displayTime();
System.out.println("You have to pay just " + B.getTimePrice(input.nextInt())+ " to enjoy this movie"); //here error comes line 63
B.ticket();
in above line i just get input of int type pass it to getTimePrice(int a){this method also accepting int} then way there is something like input[mismatchexception?
i'm really confuse.