hello I understand that this project has been posted many years ago but I have noticed a mistake: the program works perfectly except when the first number is negative.
For example, with the following input: -8 + 3 the. The program goes intoenters the function (see stacktrace below) and fails to execute the calculation.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.charAt(String.java:646)
at Main.extractNumber(Main.java:161)