Write a statement that declares a PrintWriter objectand initializes it to send output to the file namedoutput_file.
Fantastic news! We've Found the answer you've been seeking!
Question:
so far, public void initPrintWriter(String fileName) {
try {
PrintWriter outputFile = newPrintWriter(fileName);
//Not sure what to dohere?
outputFile.close();
} catch(Exception e){}
}
Related Book For
Posted Date: