void (Object o) { switch (o) { case String s -> System.out.println("s"); case Integer i -> System.out.println("i"); case Object ob -> System.out.println(o); case null -> System.out.println("null"); } }