Java Utililty Methods String Upper Case

List of utility methods to do String Upper Case

Description

The list of methods to do String Upper Case are organized into topic(s).

Method

StringtoUpperCase(CharSequence string)
Converts to upper case independent of the current locale via Character#toUpperCase(char) which uses mapping information from the UnicodeData file.
char upperCaseChars[] = new char[string.length()];
for (int i = 0; i < string.length(); i++) {
    upperCaseChars[i] = Character.toUpperCase(string.charAt(i));
return new String(upperCaseChars);
chartoUpperCase(final char c)
to Upper Case
return (char) toUpperCase((int) c);
StringtoUpperCase(final String s)
GWT 1.5.3 does not support Locale in String toUpperCase.
return s.toLowerCase();
StringtoUpperCase(final String s)
Retrieves an all-uppercase version of the provided string.
if (s == null) {
    return null;
final int length = s.length();
final char[] charArray = s.toCharArray();
for (int i = 0; i < length; i++) {
    switch (charArray[i]) {
    case 'a':
...
StringtoUpperCase(final String s)
Converts a string to upper case letters
return s == null ? null : s.toUpperCase();
voidtoUpperCase(final StringBuilder src)
Converts all of the characters in src to to upper case using the rules of the default locale.
for (int i = 0; i < src.length(); i++) {
    src.setCharAt(i, Character.toUpperCase(src.charAt(i)));
StringtoUpperCase(String candidate)
Wraps to UpperCase first char in candidate
if (candidate.length() >= 1)
    return Character.toUpperCase(candidate.charAt(0)) + candidate.substring(1);
return candidate;
StringtoUpperCase(String from)
Returns a UPPER CASE copy of the given string from or NULL if the supplied parameter is NULL.
if (from == null) {
    return null;
return from.toUpperCase();
StringtoUpperCase(String in)
Returns an all-uppercase representation of the String passed in, with dashes being replaced by underscores.
StringBuilder builder = new StringBuilder();
int length = in.length();
for (int i = 0; i < length; i++) {
    char c = in.charAt(i);
    if (c == '-') {
        builder.append("_");
    } else {
        builder.append(Character.toUpperCase(c));
...
StringtoUpperCase(String input)
returns the upper case string, is null save {Category} StringUtil {param} string(input) input: String.
String s = getNullSaveStr(input);
return s.toUpperCase();