<<< Writing text to character stream     Index     PrintWriter print( ) and println( ) >>>

3. Formatted output: PrintWriter class


  • Common methods of the PrintWriter class:

    
     Method              Throws
     -----------------   ----------
     print(argument)     None
     println(argument)   None
     flush()             IOException
     close()             IOException
    
    
  •   PrintStream and PrintWriter


<<< Writing text to character stream     Index     PrintWriter print( ) and println( ) >>>