This is a part of my code, where Im trying to generate a few patterns, Now Im getting an error saying :
Exception in thread "main" java.lang.Numbe rFormatExceptio n: For input string: "C2"
at java.lang.Numbe rFormatExceptio n.forInputStrin g(NumberFormatE xception.java:4 8)
at java.lang.Integ er.parseInt(Int eger.java:449)
at java.lang.Integ er.valueOf(Inte ger.java:554)
at nprf.offline.Pa tternGenerator. doGeneratePatte rn(PatternGener ator.java:77)...
User Profile
Collapse
-
How to resolve NumberFormatException : for input string error?
Last edited by Stewart Ross; Apr 14 '12, 12:23 PM. Reason: Added code tags and moved your explanation to the top of the question
No activity results to display
Show More