
public class ToUpperCase
{
    public static void main(String[] args) 
    {
        char c;

        c = 'x';    // Change this and demo (try '0')
        
        System.out.println(c);
        
        c = (char) (c - 'a' + 'A');
           
        System.out.println(c);
    }
}  
