Only If statement

if there is only if,it will stop when the first false happen!


3/24/2020 2:00:39 PM


3 Answers

New Answer


Is this a question?


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"); }


it is a remark