class DWDemo {
    public static void main (String args[]) throws java.io.IOException {
        char ch;
        do {
            System.out.println(" Попробуй угадать букву алфавита: ");
            ch = (char) System.in.read();
        } while (ch != 'q');
    }
}