CS 56   Advanced Java Programming

Week 4

Agenda

References

Examples

  1. Echo.java - echoes back what the user types at the console; uses InputStream methods
  2. HelloOutputStream.java - writes "Hello World"; uses OutputStream methods
  3. Type.java - reads files named on command line and prints them on System.out; uses FileInputStream class
  4. MultiType.java - reads user input from System.in and writes it into the files specified on the command line; uses FileOutputStream class
  5. FileInfo.java - reads filenames from the command line and returns various information about those files; uses the File class

Pictures

Byte Streams in java.io
Character Streams in java.io

Lab17

  1. Exercise 17.11; classname WordGenerator.
 < CS 56  > Home Email Last Modified September 20, 2001