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(String pString)
Converts a string to uppercase.
if (pString != null) {
    return pString.toUpperCase();
return null;
StringtoUpperCase(String s)
to Upper Case
return s.toUpperCase();
StringtoUpperCase(String s)
Esegue una toUpperCase su una Stringa se s == null return null
if (s == null) {
    return null;
return s.toUpperCase();
StringtoUpperCase(String s)
Returns a string with all alphabetic characters converted to upper case.
return (s != null) ? s.toUpperCase() : s;
StringtoUpperCase(String s)
Locale-independent variant of String#toUpperCase() .
StringBuilder sb = new StringBuilder(s);
for (int i = 0, len = sb.length(); i < len; i++) {
    char ch = sb.charAt(i);
    char ch2 = Character.toUpperCase(ch);
    if (ch != ch2)
        sb.setCharAt(i, ch2);
return sb.toString();
...
StringtoUpperCase(String s)
Do an ASCII only upper case conversion.
int len = s.length();
int first = -1;
for (int i = 0; i < len; ++i) {
    char a = s.charAt(i);
    char b = toUpperCase(a);
    if (a != b) {
        first = i;
        break;
...
StringtoUpperCase(String s)
to Upper Case
if (s == null)
    return null;
else {
    return s.toUpperCase();
StringtoUpperCase(String s)
to Upper Case
return toASCIIUpperCase(s);
StringtoUpperCase(String s, int start, int end)
Upper substring assigned length.
int length = s.length();
if (length >= end) {
    s = s.substring(0, start) + s.substring(start, end).toUpperCase() + s.substring(end, length);
return s;
StringtoUpperCase(String source)
This method returns the upper case version of the source string.
String returnValue = "";
if (isSet(source)) {
    returnValue = source.toUpperCase();
return returnValue;