public static void main(String args[])
            throws java.io.IOException {
        
        char ch;
        char answer = 'K';
        
        System.out.println("I'm thinking of a letter between A and Z.");
        System.out.print("Can you guess it?: ");
        
        ch = (char) System.in.read(); //read character from keyboard
        
        if(ch == answer) System.out.println("** Jou slim kind");
        else { 
            System.out.print("..try again you're ");
            
            if (ch < answer) System.out.println(" too low.");
            else System.out.println(" too high.");
        
        }
    }