java.util.InputMismatchException

For input string: "2500000000"

Solutions on the web23

  • via Coderanch by Joseph Abney, 9 months ago
    For input string: "2500000000"
  • via Stack Overflow by Stavern
    , 1 year ago
    For input string: "1000000000000"
  • via Stack Overflow by SenjuXo
    , 1 year ago
    For input string: "100000000000000000000000000000000000000"
  • Stack trace

    • java.util.InputMismatchException: For input string: "2500000000" at java.util.Scanner.nextInt(Scanner.java:2123) at java.util.Scanner.nextInt(Scanner.java:2076) at hw1.java.Hw1Java.main(Hw1Java.java:17)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 2 months ago
    Once, 1 year ago
    Once, 1 year ago