@ParameterizedTest @ArgumentsSource(TestCaseArgumentsProvider.class) @TestCase({"null", ""}) @TestCase({"", ""}) @TestCase({"a", "A"}) @TestCase({"B", "B"}) @TestCase({"abc", "Abc"}) @TestCase({" def", " def"}) void uppercaseFirst(String input, String expected) { assertThat(StringUtil.uppercaseFirst(input), is(expected)); }
public static String uppercaseFirst(String s) { if (StringUtils.isEmpty(s)) { return ""; } return s.substring(0, 1).toUpperCase() + s.substring(1); }
StringUtil extends UtilityClass { public static String uppercaseFirst(String s) { if (StringUtils.isEmpty(s)) { return ""; } return s.substring(0, 1).toUpperCase() + s.substring(1); } }
StringUtil extends UtilityClass { public static String uppercaseFirst(String s) { if (StringUtils.isEmpty(s)) { return ""; } return s.substring(0, 1).toUpperCase() + s.substring(1); }  }
StringUtil extends UtilityClass { public static String uppercaseFirst(String s) { if (StringUtils.isEmpty(s)) { return ""; } return s.substring(0, 1).toUpperCase() + s.substring(1); }  static String lowercaseFirst(String s); static String uppercaseFirst(String s); static String camelToUpper(String camelName); static String hex(byte... bytes); static String octal(byte... bytes); static Function<T,String> prepend(String arg); static Function<T,String> append(String arg); }
StringUtil extends UtilityClass { public static String uppercaseFirst(String s) { if (StringUtils.isEmpty(s)) { return ""; } return s.substring(0, 1).toUpperCase() + s.substring(1); }  static String lowercaseFirst(String s); static String uppercaseFirst(String s); static String camelToUpper(String camelName); static String hex(byte... bytes); static String octal(byte... bytes); static Function<T,String> prepend(String arg); static Function<T,String> append(String arg);  }