I tried implementing .isBlank() to omit whitespace. The netBeans IDE 11.0 (and 8.2) shows "cannot find symbol" error.
When this project is opened from another PC it works!
public FormulaElement parseFormula(String text) {
StringTokenizer tokenizer = new StringTokenizer(text, "+-*/^√()!πe% \t", true);
Vector<Object> vec = new Vector<>();
while (tokenizer.hasMoreTokens()){
String temp= tokenizer.nextToken();
//omitting whitespace
if(temp.isBlank() == true){
continue;
}
How can I fix the issue?