@@ -0,0 +1,291 @@
+// Read a character from the keyboard.%0Aclass KbIn %7B%0A%09public static void main(String args%5B%5D) throws java.io.IOException %7B%0A%09%09char ch;%0A%09%09%0A%09%09System.out.print(%22Press a key followed by ENTER: %22);%0A%09%09%0A%09%09ch = (char) System.in.read(); // get a char%0A%09%09%0A%09%09System.out.println(%22Your key is: %22 + ch);%0A%09%7D%0A%7D%0A

Read a character from the keyboard