-1

Only If statement

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

if

3/24/2020 2:00:39 PM

neyo

3 Answers

New Answer

+2

Is this a question?

+2

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

0

it is a remark