0
Can two string or char type value be checked in the condition of do-while??
can it be written in the way mentioned below??? do { ____ }while (variable1.equalsIgnoreCase(variable2);
3 Respostas
+ 2
why not
+ 2
Yea, anything that's a boolean can (must) be written in the condition.
Although in your example you forgot a round bracket before the semi-colon, so what you wrote wouldn't work.
Fix/
... variable2));
0
it can be checked. try it