Scanner.nextInt() has thrown an InputMismatchException

We found this prefix in 358 webpages.
MapChildren (330)Typical messages (3)TraceDetailed Map
  1. java.util.InputMismatchException
    1.   at java.util.Scanner.throwFor()
    2.   at java.util.Scanner.next()
    3.   at java.util.Scanner.nextInt()
    4.   at java.util.Scanner.nextInt()
  1. InputMismatchException

    Main.main()
    Crashes:7
    Projects:0
    Web Pages:7
    Error Reports:0
    First:10 months ago
    Last:7 months ago
    preview
  2. InputMismatchException

    Ch2ProgLabWilson.main()
    Crashes:5
    Projects:0
    Web Pages:4
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  3. InputMismatchException

    Test.main()
    Crashes:4
    Projects:0
    Web Pages:4
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  4. InputMismatchException

    TestScanner.main()
    Crashes:3
    Projects:0
    Web Pages:3
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  5. Java reading from text file to array

    First:4 years ago
    Last:3 years ago
    Author:k_2
  6. InputMisMatchException - Software Development | DaniWeb

    First:3 years ago
    Last:3 years ago
  7. InputMismatchException

    SorcerersCave.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  8. Exception in thread "main" java.util.InputMismatchException for SimpleDate class *solved*

    First:4 years ago
    Last:3 years ago
    Author:sleepy
  9. InputMismatchException

    Solution.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  10. RuntimeException

    UpdateLocation.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  11. Figure 15

    First:3 years ago
    Last:3 years ago
  12. InputMismatchException

    Adamos.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  13. InputMismatchException

    Proj2.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  14. simple calculator function in java

    First:4 years ago
    Last:3 years ago
    Author:user3241004
  15. Exception in thread "main" java.lang.StringIndexOu

    First:2 years ago
    Last:2 years ago
  16. InputMismatchException

    Lab12.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  17. InputMismatchException

    Sample.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  18. Error occurs during try/catch statement

    First:3 years ago
    Last:3 years ago
    Author:Aryan
  19. InputMismatchException

    KennelDemo.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  20. Adding array values from a text file and printing them

    First:3 years ago
    Last:3 years ago
    Author:user3872094
  21. InputMismatchException

    Q.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  22. InputMismatchException

    Square.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  23. Scanners exception: java.util.InputMismatchException

    First:5 years ago
    Last:3 years ago
    Author:kylealanr
  24. InputMismatchException

    monthTempsClient.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  25. Null Pointer Error in Split function

    First:2 years ago
    Last:2 years ago
    Author:Suryansh Singh
  26. InputMismatchException

    StudentMenu.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:2 weeks ago
    Last:2 weeks ago
    preview
  27. InputMismatchException

    MonthlyExpense.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  28. What's wrong with my code; constructors and loops?

    First:4 years ago
    Last:3 years ago
    Author:Newbie
  29. InputMismatchException while reading file with Scanner

    First:3 years ago
    Last:3 years ago
  30. How to stop exception when type in wrong data type using scanner

    First:4 years ago
    Last:3 years ago
    Author:user3111329
  31. Javaの簡単な質問です - public class Hello{ public static void... - Yahoo!知恵袋

    First:1 year ago
    Last:1 year ago
  32. ERROR MESSAGE PLEASE HELP

    First:9 years ago
    Last:4 months ago
    Author:843789
  33. InputMismatchException

    Project6.main()
    Crashes:2
    Projects:0
    Web Pages:2
    Error Reports:0
    First:4 months ago
    Last:4 months ago
    preview
  34. Correct Regex to Prevent Java Scanner From Returning a Zero Length String

    First:6 years ago
    Last:3 years ago
    Author:Jared
  35. Java error when compiling. Help me sempais TTwTT

    First:6 months ago
    Last:6 months ago
    Author:s u
  36. Triangle types program with infile

    First:2 years ago
    Last:2 years ago
    Author:icecreeper01
  37. How to fix Exception in thread "main" java.util.InputMismatchException

    First:1 year ago
    Last:1 year ago
    Author:Antoniya Puleva
  38. InputMissMatchException

    First:9 years ago
    Last:3 years ago
    Author:Loolooii
  39. java.util.InputMismatchException Tax Program

    First:1 year ago
    Last:1 year ago
    Author:Devin
  40. Exceptions

    First:6 years ago
    Last:2 years ago
    Author:Gary Lineker
  41. I keep on getting the error "java.util.InputMismatchException" in my code

    First:4 years ago
    Last:3 years ago
    Author:dragonbunnies
  42. JAVA - logic error in main method

    First:1 year ago
    Last:1 year ago
    Author:Krumel Munster
  43. Reading from file, attempting to pull just an int but getting InputMismatchException

    First:6 years ago
    Last:3 years ago
    Author:Kynian
  44. Java - java.util.InputMismatchException

    First:4 years ago
    Last:3 years ago
    Author:Slowp Powl
  45. Cannot catch InputMismatchException in java

    First:3 years ago
    Last:2 years ago
    Author:zie tan ny
  46. count a certain letter in a type statement.

    First:11 years ago
    Last:3 years ago
    Author:jcsen...@yahoo.com
  47. Class java - array of class, receiving data from the user

    First:2 years ago
    Last:2 years ago
    Author:liran
  48. Make user only input integer in scanner Java

    First:2 years ago
    Last:2 years ago
    Author:Luth Hizb
  49. Java Error "Exception in thread "main" java.util.InputMismatchException" On an Array program

    First:5 years ago
    Last:2 years ago
    Author:user2711784
  50. jGRASP InputMismatchException error

    First:3 years ago
    Last:2 years ago
    Author:Savannah Morrison
MessageNumber of crashes
<No message>356
java.util.InputMismatchEx ception1
java.util.InputMismatchEx ception1
  1. java.util.InputMismatchException
    1.   at java.util.Scanner.throwFor()
    2.   at java.util.Scanner.next()
    3.   at java.util.Scanner.nextInt()
    4.   at java.util.Scanner.nextInt()