void (Object o) { switch (o) { case Integer n -> { if (n == 1) { System.out.println("2"); } System.out.println(1); System.out.println(1); } case Object ob -> System.out.println(o); } System.out.println("2"); switch (o) { case Integer n -> { if (n == 1) { System.out.println("1"); } System.out.println(1); System.out.println(1); } case Object ob -> System.out.println(o); } System.out.println("2"); }