int test = 6; if ( test != 9) { System.out.println("yes"); } else { System.out.println("this is else"); }
int age; age = 3; switch (age) { case 1: System.out.println("You can crawl"); break; case 2: System.out.println("You can talk"); break; case 3: System.out.println("You can get in trouble"); break; default: System.out.println("I dont know how old you are"); break; }