Like how can I incorporate a boolean into my source code?
7/1/2016 5:12:53 PM
Chomba Chinambu5 Answers
New Answereither true or false. declare variable and set as either true or false. bool onTime; onTime = true;
boolean have only two values either true or false...u can try by using operators int a=34; int b=16; boolean k=(a>15 && b <40); System.out.println(k); This prints true.. hope this helps
can i declare a boolean variable with the T or F value (this letters equivalent to True or False)?
boolean return positive or negative values which is compiled by Java and it will return true if positive else false negative..
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message