Android String Case Convert UpperCase(String str)

Here you can find the source of UpperCase(String str)

Description

Upper Case

Declaration

private static String UpperCase(String str) 

Method Source Code

//package com.java2s;

public class Main {
    private static String UpperCase(String str) {
        int len = str.length();
        String result = "";
        for (int i = 0; i < len; i++) {
            String subStr = str.substring(i, i + 1);
            char subChar = str.charAt(i);
            if (subChar >= 'a' && subChar <= 'z')
                result += subStr.toUpperCase();
            else//from   w ww . ja va  2s.c om
                result += subStr;
        }
        return result;
    }
}

Related

  1. firstByteToLower(String instring)
  2. capitalize(String plainMessage, char letter)
  3. uncapitalize(String capitalizedMessage, char letter)
  4. toUpper(char ch)
  5. toLowerSubset(String source, char substitute)
  6. capitalize(String s)
  7. capitalize(final String str)
  8. capitalizeFirst(CharSequence movementTitle)