I’m just messing around with the boolean Not operator, trying a couple of different statements. Not sure why this is an error
<In what way does your code behave incorrectly? Include ALL error messages.>
Not.java:9: error: unexpected type
System.out.println( !(4 = 10) );
^
required: variable
found: value
1 error
public class Not {
public static void main(String[] args) {
System.out.println(!(false));
System.out.println( !(5>=1) );
System.out.println( ! (4 <= 10) );
System.out.println( !(4 = 10) );
}
}