Help With Lesson 2 Question 11


I am still receiving the error message "Try again. The variable tricky should equal either true or false." I can get the output to display both true and false but I continue to get the error message. Any help would be appreciated.

public class GeneralizationsB {
	public static void main(String[] args) {

	boolean tricky = ( 3 >= 3 && !(true || true) );



Be sure to read the directions before doing your code. The instructions say:
Use the precedence rules to help you evaluate the Boolean expression in the single line comment above the tricky variable.

Then, set the boolean variable tricky equal to the result (either true or false).

You copied and pasted the comment line, which was not what the lesson wanted you to do. Try to do the exercise again, and if you still don't understand, message me.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.