public class Case { public static void main(String[] args) { int n = Integer.parseInt(args[0]); switch(n) //you can switch on integral types //any of the four integer types //strings //chars //enums (later) { case 0: System.out.println("You entered a zero."); //break; case 1: System.out.println("You entered a one."); //break; case 2: System.out.println("You entered a two."); // break; default: System.out.println("Having a default is optional"); } } }