@Test public void testLowercaseFirstLetter() { assertThat(lowercaseFirstLetter(""), is("")); assertThat(lowercaseFirstLetter("A"), is("a")); assertThat(lowercaseFirstLetter("AA"), is("aA")); assertThat(lowercaseFirstLetter("a"), is("a")); assertThat(lowercaseFirstLetter("aB"), is("aB")); }
public static String lowercaseFirstLetter(String string) { if (string == null || string.length() == 0) { return string; } else { return string.substring(0, 1).toLowerCase() + string.substring(1); } }
Strings { public static String lowercaseFirstLetter(String string) { if (string == null || string.length() == 0) { return string; } else { return string.substring(0, 1).toLowerCase() + string.substring(1); } } }
Strings { public static String lowercaseFirstLetter(String string) { if (string == null || string.length() == 0) { return string; } else { return string.substring(0, 1).toLowerCase() + string.substring(1); } } private  Strings(); }
Strings { public static String lowercaseFirstLetter(String string) { if (string == null || string.length() == 0) { return string; } else { return string.substring(0, 1).toLowerCase() + string.substring(1); } } private  Strings(); static String toCsv(List<String> src); static String join(List<String> src, String delimiter); static String capitaliseFirstLetter(String string); static String lowercaseFirstLetter(String string); static String zeros(int n); static String repeat(char value, int n); static boolean isEmpty(String s); static byte[] asciiToHex(String asciiValue, int length); static String hexStringToAscii(String hexStr); }
Strings { public static String lowercaseFirstLetter(String string) { if (string == null || string.length() == 0) { return string; } else { return string.substring(0, 1).toLowerCase() + string.substring(1); } } private  Strings(); static String toCsv(List<String> src); static String join(List<String> src, String delimiter); static String capitaliseFirstLetter(String string); static String lowercaseFirstLetter(String string); static String zeros(int n); static String repeat(char value, int n); static boolean isEmpty(String s); static byte[] asciiToHex(String asciiValue, int length); static String hexStringToAscii(String hexStr);  }