Strings { public static String fixCase(String s) { if (s == null || s.length() == 0) { return s; } if ( Character.isUpperCase(s.charAt(0)) && (s.length() == 1 || Character.isLowerCase(s.charAt(1)))) { s = s.toLowerCase(); } return s; }  static String fixCase(String s); static String joinStrings(List<String> strings, boolean fixCase, char withChar); static List<String> splitJavaIdentifier(String string);  }
@Test public void testFixCase() { System.out.println("fixCase"); String[] cases = { "", "a", "A", "Abc", "ABC", "ABc" }; String[] results = { "", "a", "a", "abc", "ABC", "ABc" }; for (int i = 0; i < cases.length; i++) { assertEquals(results[i], Strings.fixCase(cases[i])); } }