Hi everyone, I'm having a hard time fixing my code, It runs but as soon as i enter a number and hit enter it crashes giving me the error
Exception in
thread "main" java.lang.NumberFormatException: For input
string: "$137.50"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
at java.lang.Float.parseFloat(Float.java:451)
at Discountt.main(Discountt.java:27)
When i debug the program it tells me something is wrong with
This is also my 1st time using float