public class UsePrintWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fileName |
private java.lang.String |
firstName |
private java.io.PrintWriter |
out |
Constructor and Description |
---|
UsePrintWriter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName()
Gets the fileName attribute of the UsePrintWriter object.
|
java.lang.String |
getFirstName()
Gets the firstName attribute of the UsePrintWriter object.
|
static void |
main(java.lang.String[] args)
The main program for the UsePrintWriter class.
|
void |
run(java.lang.String[] args)
Main processing method for the UsePrintWriter object.
|
void |
setFileName(java.lang.String fileName)
Sets the fileName attribute of the UsePrintWriter object.
|
void |
setFirstName(java.lang.String firstName)
Sets the firstName attribute of the UsePrintWriter object.
|
private java.io.PrintWriter out
private java.lang.String fileName
private java.lang.String firstName
public void setFileName(java.lang.String fileName)
fileName
- The new fileName valuepublic java.lang.String getFileName()
public void setFirstName(java.lang.String firstName)
firstName
- The new firstName valuepublic java.lang.String getFirstName()
public void run(java.lang.String[] args) throws java.io.IOException
java.io.IOException
- Description of the Exceptionpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- The command line argumentsjava.io.IOException
- If there is an I/O problem