Here you can find the source of toUpperCase(char a)
public static char toUpperCase(char a)
//package com.java2s; public class Main { public static char toUpperCase(char a) { if (a < 'a') { return a; }/* www. j a va 2s .c o m*/ if (a >= 'a' && a <= 'z') { return (char) (a + ('A' - 'a')); } return Character.toUpperCase(a); } }