import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
class _______________ {
public static void main(String args[])
throws FileNotFoundException {
PrintStream diskWriter =
new PrintStream(“___________”);
diskWriter.print(_____);
diskWriter.println(_____);
// Etc.
}
}
insert the name of your class into the first blank space. Type the name of the output file in the space between the quotation marks. Then, to write part of a line to the output file, call diskWriter.print. To write the remainder of a line to the output file, call diskWriter.println.
import java.io.FileNotFoundException;
import java.io.PrintStream;
class _______________ {
public static void main(String args[])
throws FileNotFoundException {
PrintStream diskWriter =
new PrintStream(“___________”);
diskWriter.print(_____);
diskWriter.println(_____);
// Etc.
}
}
insert the name of your class into the first blank space. Type the name of the output file in the space between the quotation marks. Then, to write part of a line to the output file, call diskWriter.print. To write the remainder of a line to the output file, call diskWriter.println.
No comments:
Post a Comment