ok
the following error occurs, if inputString=12345 and index=0
java test please type in a string: 12345
java.lang.NumberFormatException:
at java.lang.Integer.parseInt(Compiled Code)
at java.lang.Integer.parseInt(Integer.java:375)
at MakeNumberAutomat.makeNumber(Compiled Code)
at test.main(test.java:12)
the goal is: check, if a string is a real number, and calculate a number out of a string using that formula:
((((1*10+2)*10+3)*10+4)*10+5)*10..etc.
that number should be returned.
if the inputString is <0, the number should be mulitiplicated with (-1) and also be returned
the inputString might also be "+12345" or "-12345" and even " +12345"