User Profile

Collapse

Profile Sidebar

Collapse
tekt9t9
tekt9t9
Last Activity: Jun 18 '10, 03:10 PM
Joined: Jun 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tekt9t9
    replied to Parse a string to int.
    in Java
    Thanks that did the work... Quite obvious :-)
    See more | Go to post

    Leave a comment:


  • tekt9t9
    started a topic Parse a string to int.
    in Java

    Parse a string to int.

    Hello

    I want to parse a string which holds a integer value to an int. The Interger.parsei nt() throws an exception. e.g

    If i try to execute the following code:

    Code:
    i = Integer.parseInt("14141414141414");
    it throws the following exception:
    Code:
    Exception in thread "main" java.lang.NumberFormatException: For input string: "14141414141414"
    	at java.lang.NumberFormatException.forInputString(Unknown
    ...
    See more | Go to post
No activity results to display
Show More
Working...