void (Object o) { switch (o) { case R1(String s1, Object s2) when s1.hashCode() == 3 -> { if (s1.hashCode() == 1) { System.out.println("2"); System.out.println("2"); System.out.println("2"); } } default -> System.out.println("3"); } System.out.println("1"); }