java.lang.NumberFormatException: For input string: "+-6"

Stack Overflow | Khaldoun Nd | 6 months 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

    Trying to multiply two operators that are in string form

    Stack Overflow | 6 months ago | Khaldoun Nd
    java.lang.NumberFormatException: For input string: "+-6"
  2. 0

    Exception in thread "main" java.lang.NumberFormatException: For input string: ""

    Stack Overflow | 4 years ago | mihir S
    java.lang.NumberFormatException: For input string: ""
  3. 0

    How do I open hex file in java?

    Stack Overflow | 4 years ago | zarcel
    java.lang.NumberFormatException: For input string: "tîxl¸?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How can I write this .txt file into a 2D int array and not receive a NumberFormatException?

    Stack Overflow | 4 years ago | Dusquad
    java.lang.NumberFormatException: For input string: "6 0 0 1 9 5 0 0 0"
  6. 0

    Java lang numberformatexception for input string - Java Programming Help - KnowCoding.com

    knowcoding.com | 1 year ago
    java.lang.NumberFormatException: For input string: "5.843" at java.lang.NumberFormatException.forInputString(Unk nown Source)

  1. Andreas Häber 6 times, last 6 days ago
  2. justCodeit 2 times, last 3 weeks ago
  3. Riyaz 4 times, last 1 month ago
  4. harshg 1 times, last 1 month ago
  5. aldrinleal 8 times, last 1 month ago
37 more registered users
58 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: "+-6"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2. java.lang.Integer.parseInt(Integer.java:580)
    3. java.lang.Integer.parseInt(Integer.java:615)
    3 frames
  3. Unknown
    test.main
    1. Polynomials.split(Polynomials.java:65)
    2. test.main(test.java:8)
    2 frames