void (Object o) { Task: while (true) { for (int i = 0; i < o.hashCode(); i++) { switch (o) { case String s: System.out.println("s"); System.exit(0); break; case Integer in: System.out.println("ii"); continue Task; case Object ob: System.out.println("s"); break Task; } } } }