Question:
What sequence will be constructed by the following source?
/**
* The testTextMethods uses:
* boolean IOMaster.writeTextFile(String filename, String text)
* and
* String IOMaster.readTextFile(String filename)
*/
public static void testTextMethods() throws IOException {
String[] lines = { "Jeff", "Alicia", "Karen" };
String name = "/Users/joetijerina/Desktop/its-resources/day7.txt";
IOMaster.writeTextFile(name, lines);
String text = IOMaster.readTextFile(name);
System.out.println(text);
}
|
Write text file, read text file, and display file content.
Compiler error
Create file, write text file, display file content
File not found error
|