- 1
Only If statement
if there is only if,it will stop when the first false happen!
3 Réponses
+ 3
neyo yes Cause there is no else condition to perform alternative part.
//in this case it has no output
if(false) {
System.out.println("Hello world");
}
//this will print Hello World
if(false) {
System.out.println("Hello");
}else{
System.out.println("Hello world");
}
+ 2
Is this a question?
0
it is a remark