java.lang.NumberFormatException: For input string: "21474836479"Will throw an Exception...even though there are only digits is the String

Coderanch | pascal betz | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Detecting a String that represents a number

    Coderanch | 1 decade ago | pascal betz
    java.lang.NumberFormatException: For input string: "21474836479"Will throw an Exception...even though there are only digits is the String
  2. 0

    Java: formatting numbers error?

    Stack Overflow | 2 years ago | dzenesiz
    java.lang.NumberFormatException: For input string: "C"
  3. 0

    Why is 1 plus 31 zeros not a valid integer, if bit flags are 31 length, plus one negative/positive flag?

    Stack Overflow | 3 years ago | aliteralmind
    java.lang.NumberFormatException: For input string: "10000000000000000000000000000000"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A Quick Intro to Java

    brianheinold.net | 7 months ago
    java.lang.NumberFormatException: For input string: "23x"
  6. 0

    Exit this Do-While w/out an int?

    Coderanch | 8 years ago | Brian Pianczk
    java.lang.NumberFormatException: For input string: ""

  1. rp 4 times, last 2 weeks ago
  2. Handemelindo 6 times, last 2 weeks ago
  3. treefolk 3 times, last 1 month ago
  4. andreeaa marin 2 times, last 1 month ago
  5. eti22 6 times, last 1 month ago
33 more registered users
62 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "21474836479"Will throw an Exception...even though there are only digits is the String

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.parseInt(Unknown Source)
    3 frames
  3. Unknown
    Test.main
    1. Test.main(Test.java:12)
    1 frame