//method void foo() { switch(a) { System.out.println("1") System.out.println("2") } }