Results 1 to 4 of 4
  1. #1
    chathura992 is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default java.lang.NumberFormatException: For input string: ""

    java.lang.NumberFormatException: For input string: ""

    what is this error please helpppppppppppppppppppppppppppppppppppppppppp

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,958
    Rep Power
    8

    Default

    Post an SSCCE that demonstrates what you're talking about and we might be able to help (notice how that only has one 'p').

    But chances are, "" does not format to a number and therefore the Exception is thrown.

    Also notice how sentences begin with a capital letter and end with a punctuation mark of some kind.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    JavaHater is offline Senior Member
    Join Date
    Dec 2010
    Posts
    165
    Rep Power
    4

    Default

    Quote Originally Posted by chathura992 View Post
    java.lang.NumberFormatException: For input string: ""

    what is this error please helpppppppppppppppppppppppppppppppppppppppppp
    most likely you are using Integer.parseInt() or Double.parseDouble() or (anything else similar) to directly parse your input and when you enter "", it throws error. You can either catch the error using try/catch , or you can check for "" string first before passing your input to these methods.

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

Similar Threads

  1. Replies: 5
    Last Post: 04-12-2010, 03:39 PM
  2. jsp insert into database error(java.lang.NumberFormatException: For input string: "")
    By cypher_girl in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 12-22-2009, 03:14 AM
  3. Replies: 1
    Last Post: 11-20-2009, 07:58 PM
  4. Replies: 3
    Last Post: 06-07-2009, 12:14 AM
  5. Replies: 3
    Last Post: 05-21-2009, 03:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •