Class FilePrintWriterDemo


  • public class FilePrintWriterDemo
    extends java.lang.Object
    Output files using classes File and PrintWriter.
    Version:
    Copyright (c) 2002 -- SCCC West
    Author:
    Prof. Carl B. Struck
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Opens an output PrintWriter file and writes name, age and phone number data to the file.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilePrintWriterDemo

        public FilePrintWriterDemo()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Opens an output PrintWriter file and writes name, age and phone number data to the file.
        Parameters:
        args - the String[] array command line parameter
        Throws:
        java.io.IOException - if some sort of I/O exception has occurred