Here you can find the source of toUpperCase(char c)
public static char toUpperCase(char c)
//package com.java2s; //License from project: Apache License public class Main { public static char toUpperCase(char c) { return isLowerCase(c) ? (char) (c - 'a' + 'A') : c; }/*from w w w . j a va 2s.co m*/ public static boolean isLowerCase(char c) { if (c <= 'z' && c >= 'a') return true; return false; } }