Title: PrintStream Scanner Constructors
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- PrintStream Scanner Constructors lecture video (Time: 00:00)
- PrintStream Scanner Constructors document

- Over all approach to opening a Scanner and PrintStream connected to files. Catching the necessary exceptions and a finally clause to close the Scanner and PrintStream. We start out using FileInputStream and FileOutputStream.
- Rework the previous example using the File class.
- PrintStream has a constructor that takes a String, but the Scanner class constructor that takes a String does not do what you might expect.