public class simpleClass{
public static void main(String[] args){
String a = "2 + 3";
double b = Double.parseDouble(a);
System.out.println(b);
}
}
That's just simple code to show what's my problem.
Why this won't work when I run the program?
I'm making a simple calculator in Spring and I'm adding numbers as a String (also +, -, /, *) but after parsing I'm getting errors in IJ.