public class Coffee{
public static void main(String arg[]) {
int age;
age = 7;
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 don't know how old you are");
break;
}
}
}
Comments
Post a Comment