Why come the wrong ?

11 Generalizations

Print the message in the else block.

if ( 5 <= 3 && !(true || true)){
    boolean tricky=true;
   boolean tricky=false;

Replace this line with your code.



There are three segments of code, each corresponding to one of the questions. The first is a visual problem to manually solve. What value should be assigned to tricky?

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

Treat the other two questions separately and perform the required tasks on their respective code segment.


Hi! Roy,

help me please?

first segment tell: if expression visual result ist false, than

segond- Change code to print in else block:

my block if: if trikly==true {(println trickly);} else{println( trikly); }

so trikly true or false print o.
the value the trickly false print code em else block

I don`t understand where ist the wrong?


The problems are very simple and most of the code is already written. There is no tricky variable beyond the first question.

The second question wants us to print out, Upgraded to the future!. That means the boolean expression needs to result in false. ____ > ____ or ____ < ____?

The third question just asks us to set the int variable subwayTrain so that it matches the case that prints, This is a Brooklyn bound train!. That's not a big problem, is it?


thank you very much!!!
the problem is very easly sometimes we come in loop?

thank thank now all Ok