J2EEOnline
GofPatterns OOPortal
prev next
  Course navigation
Counting the available bytes
Use a byte array buffer,
  1. an InputStream,
  2. the available() method,
  3. and the System.out.println() method
to write a more efficient program that copies data from System.in to System.out.
Paste the source code of your program below and click the Submit button when you are ready to submit this exercise.