@@ -0,0 +1,365 @@
+// Read an array of bytes from the keyboard.%0A%0Aimport java.io.*;%0A%0Aclass ReadBytes %7B%0A%09public static void main(String args%5B%5D) throws IOException %7B%0A%09%09byte data%5B%5D = new byte%5B10%5D;%0A%09%09%0A%09%09System.out.println(%22Enter some characters.%22);%0A%09%09System.in.read(data);%0A%09%09System.out.print(%22You entered: %22);%0A%09%09for(int i=0; i %3C data.length; i++)%0A%09%09%09System.out.print((char) data%5Bi%5D);%0A%09%7D%0A%7D%0A

Read an array of bytes from the keyboard