+ 1
Can someone please tell me why is the output of the code is error?
{ boolean b="true"; int i=1; if (b) { i++; } System.out.print(i); }
3 Respuestas
+ 21
boolean b = true;
Erase the double quotes.
+ 2
Because you try to use a string value "true" in boolean variable. Try b=true instead of b="true".
0
tnx..