public static String reverse(String s) { return s.equals("") ? "" : reverse(s.substring(1)) + s.charAt(0); }