void (String r2) { switch (r2) { case "first": System.out.println("1"); break; case "second": System.out.println("2"); break; case null: System.out.println("null"); break; case String s: System.out.println(s); } }