I'm trying to do compare it but I have this query can I compare every condition with one go? Like
if(exp.charAt(i)=='+','-','/','*')
I know I have to do something like this which is correct but i'm trying to find a short way to to this.
if(exp.charAt(i)=='+',exp.charAt(i)=='-',exp.charAt(i)=='/',exp.charAt(i)=='*'