void (Object o) { switch (o) { case String s when s.isEmpty() && s.getBytes().length == 2 -> System.out.println("empty s"); case String s -> System.out.println("s"); case Integer i -> System.out.println("iii"); case Object ob -> System.out.println(o); } System.out.println("1"); }