I thought the default value of boolean is false? Why does it print the true statement instead? My output is goodbye
public class Test {
public static void main (String [] args) {
if(false)
System.out.print("hello");
else System.out.print("goodbye");
}
}
Aucun commentaire:
Enregistrer un commentaire