I continuously have been getting the same error over and over again for this code and I have basically been banging my head against the wall trying to solve it.
The image shows all the files combined and the error I get is from the 5th line onwards which is the beginning of expressions2.txt
I keep getting this error:
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:543)
at Complex.fromString(Main.java:94)
at Main.evaluateExpression(Main.java:47)
at Main.processFile(Main.java:20)
at Main.main(Main.java:9)
when I compile and whatever I do to change it it just doesn't work.
The darker image is a screenshot of what happens when I attempt to run the code.