Feb 26th, 2021
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import*;
  3. public class ReadBytes {
  4.     public static void main(String[] args)
  5.     throws IOException {
  6.         byte data[] = new byte[10];
  8.         System.out.println("Enter some characters.");
  9.;  // Read an arrat of bytes from the keyboard.
  10.         System.out.print("You entered: ");
  11.         for(int i=0; i < data.length; i++)
  12.             System.out.print((char) data[i]);
  13.     }
  14. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.