StringUtils { public static String capitaliseFirst(@NonNull String s) { return s.substring(0, 1).toUpperCase(Locale.getDefault()) + s.substring(1); }  static String capitaliseFirst(@NonNull String s);  }
@Test public void capitaliseFirst() { assertEquals("Hydra", StringUtils.capitaliseFirst("hydra")); assertEquals("HYDRA", StringUtils.capitaliseFirst("HYDRA")); assertEquals("HYDRA", StringUtils.capitaliseFirst("hYDRA")); assertEquals("65656565", StringUtils.capitaliseFirst("65656565")); }