public class MainClass { public static void main(String args[]) { Integer intObject = 2; switch(intObject) { case 1: System.out.println("one"); break; case 2: System.out.println("two"); break; default: System.out.println("error"); } } }
two