For my programming 1 class we are learning java and he told us to display this boolean expression
p+q((!p||q)&&(!q||p))
this is what i have so far but it keeps giving me an error saying it can't find q...what am i doing wrong? any help is greatly appreciated
public class booleans
{
public static void main(String[] args)
{
boolean p;
boolean q;
p=false;
q=false;
for(int i=0; i<=1; i++){
for(int j=0; j<=1; j++)
System.out.println(p+q((!p||q)&&(!q||p)));
}
}
}

