Here you can find the source of toUpperCase(char c)
public static char toUpperCase(char c)
//package com.java2s; //License from project: Open Source License public class Main { private static final int alphaStep = 'a' - 'A'; public static char toUpperCase(char c) { return isLowerCase(c) ? (char) (c - alphaStep) : c; }/*www . j ava 2 s . co m*/ public static boolean isLowerCase(char c) { return c >= 'a' && c <= 'z'; } }