Sample Programs for Class 4

Several sample programs are provided relating to the material covered in class 4. Click here to download the zip file containing these programs.

Main1

This program demonstrates some of the classes and methods used by the IO and Net packages.
  • Compile (javac Main1.java)
  • Execute - applet main1.html
  • View Source
  • File class source
  • Html class source
  • Options dialog source