salut, j'ai un problème en java :
voilà ma condition :
...
if (s.charAt(i)=='*' && p[np]=='+' || s.charAt(i)=='*' && p[np]=='-' || s.charAt(i)=='/' && p[np]='+' || s.charAt(i)=='*' && p[np]=='-' || p[np]==')' || p[np]=='(')
...
et le compilateur le dit :
operator || cannot be applied to char,boolean
operator && cannot be applied to boolean,char
donc comment je peux faire autrement ?