Page 1 of 1

About Question enthuware.ocajp.i.v8.2.847 :

Posted: Sat May 19, 2018 8:09 am
by flex567
In Java, a while or do/while construct takes an expression that returns a boolean.
What about IF ?

Re: About Question enthuware.ocajp.i.v8.2.847 :

Posted: Thu May 24, 2018 10:31 pm
by admin
Not sure what you mean. If takes a boolean expression as well. But the question is about while.

Re: About Question enthuware.ocajp.i.v8.2.847 :

Posted: Fri May 25, 2018 5:10 pm
by flex567
aha ok that is now clear.
Only if, while and for take an expression that returns a boolean.

Re: About Question enthuware.ocajp.i.v8.2.847 :

Posted: Mon May 28, 2018 9:25 pm
by admin
A for does too.