@Test public void methodUppercaseWithTurkishLocale() { Locale defaultLocale = Locale.getDefault(); try { Locale.setDefault(new Locale("tr", "TR")); Assert.assertEquals("Integer", SharedUtil.capitalize("integer")); } finally { Locale.setDefault(defaultLocale); } }
public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(); } return string.substring(0, 1).toUpperCase(Locale.ENGLISH) + string.substring(1); }
SharedUtil implements Serializable { public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(); } return string.substring(0, 1).toUpperCase(Locale.ENGLISH) + string.substring(1); } }
SharedUtil implements Serializable { public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(); } return string.substring(0, 1).toUpperCase(Locale.ENGLISH) + string.substring(1); }  }
SharedUtil implements Serializable { public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(); } return string.substring(0, 1).toUpperCase(Locale.ENGLISH) + string.substring(1); }  static boolean equals(Object o1, Object o2); static String trimTrailingSlashes(String value); static String[] splitCamelCase(String camelCaseString); static String camelCaseToHumanFriendly(String camelCaseString); static String join(String[] parts, String separator); static String capitalize(String string); static String propertyIdToHumanFriendly(Object propertyId); static String addGetParameters(String uri, String extraParams); static String dashSeparatedToCamelCase(String dashSeparated); }
SharedUtil implements Serializable { public static String capitalize(String string) { if (string == null) { return null; } if (string.length() <= 1) { return string.toUpperCase(); } return string.substring(0, 1).toUpperCase(Locale.ENGLISH) + string.substring(1); }  static boolean equals(Object o1, Object o2); static String trimTrailingSlashes(String value); static String[] splitCamelCase(String camelCaseString); static String camelCaseToHumanFriendly(String camelCaseString); static String join(String[] parts, String separator); static String capitalize(String string); static String propertyIdToHumanFriendly(Object propertyId); static String addGetParameters(String uri, String extraParams); static String dashSeparatedToCamelCase(String dashSeparated); static final String SIZE_PATTERN; }