No matter what I seem to try, replacing the white space with an input of
2x= -3
will result in the string being truncated to just 2x=.
public void parseEquation(String x){
String adf = x;
String z = adf.replaceAll("\\s","");
System.out.println(z);
}
The first line is my input, the next line is my output
StringBuilder
for such string operations