+ 1
Give me an example for boolean input plz
I coded this way Scanner c = new Scanner(System.in); char con = c.nextBoolean(); It saysboolean cannot be converted to char.
3 Réponses
+ 3
thats because a boolean cant be converted to a char....
a boolean is either true or false
a char is a single character
did you mean boolean con = c.nextBoolean ();
+ 1
Plz explain me how does a boolean function work?
How do we use it to get input.
In javascript.
0
Can u give me an example script for getting boolean input plz