this what i have so far. I am not sure how to check if it is an integer though. Is there a method in Java that allows you to check if the character is an integer or not?
boolean goodInfix = true;
for(int i=0; i<exp.length(); i++)
{
if(charAt(i)='+' || charAt(i)='-' || charAt(i)='*' || charAt(i)='/' ||
charAt(i)='%' || charAt(i)=' ' || charAt(i)='(' || charAt(i)=')')
goodInfix = true;
else
goodInfix = false;
}
>