List of utility methods to do String Upper Case
String | toUpperCaseUnderscore(String text) to Upper Case Underscore text = text.toUpperCase().trim(); text = text.replace(WHITESPACE, "_"); return text; |
String | toUpperCaseWithUnderscores(String className) to Upper Case With Underscores StringBuilder sb = new StringBuilder(); for (char c : className.toCharArray()) { if (c >= 'A' && c <= 'Z' && sb.length() > 0) { sb.append('_').append(c); } else { sb.append(Character.toUpperCase(c)); return sb.toString(); |
String | toUpperCaseWithUnderscores(String str) to Upper Case With Underscores return null;
|