Error Handing, identifying offending string
Was wondering if anyone knows any way to refer to the offending input string when handling a NumberFormatException error. Below is an example of the error i'm handling, I want to be able to include the "a" in the explanation.
Exception in thread "main" java.lang.NumberFormatException: For input string: "a"
System.out.println("Input is not a Number, you entered" + (//want the "a" displayed here)