@Test public void testGetFirstCapitalize() { assertThat(StringUtils.getFirstCapitalize("lol"), is("Lol")); }
@NonNull public static String getFirstCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { textCapitalize.append(text.substring(0, 1).toUpperCase()).append(text.substring(1, text.length())); } return textCapitalize.toString(); }
StringUtils { @NonNull public static String getFirstCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { textCapitalize.append(text.substring(0, 1).toUpperCase()).append(text.substring(1, text.length())); } return textCapitalize.toString(); } }
StringUtils { @NonNull public static String getFirstCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { textCapitalize.append(text.substring(0, 1).toUpperCase()).append(text.substring(1, text.length())); } return textCapitalize.toString(); } private  StringUtils(); }
StringUtils { @NonNull public static String getFirstCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { textCapitalize.append(text.substring(0, 1).toUpperCase()).append(text.substring(1, text.length())); } return textCapitalize.toString(); } private  StringUtils(); static boolean isEmailValid(@NonNull final String email); static boolean isBlank(@Nullable final CharSequence text); static boolean isBlank(@Nullable final String text); @NonNull static String getFirstCapitalize(@NonNull String text); @NonNull static String getAllCapitalize(@NonNull String text); }
StringUtils { @NonNull public static String getFirstCapitalize(@NonNull String text) { Preconditions.checkNotNull(text, "text"); StringBuilder textCapitalize = new StringBuilder(); if (!text.isEmpty()) { textCapitalize.append(text.substring(0, 1).toUpperCase()).append(text.substring(1, text.length())); } return textCapitalize.toString(); } private  StringUtils(); static boolean isEmailValid(@NonNull final String email); static boolean isBlank(@Nullable final CharSequence text); static boolean isBlank(@Nullable final String text); @NonNull static String getFirstCapitalize(@NonNull String text); @NonNull static String getAllCapitalize(@NonNull String text);  }