Application

Report a typo

The following piece of code prints to file the line: Lorem ipsum

File file = new File("file.txt"); // some file

try (FileWriter writer = new FileWriter(file, true)) {
    writer.write("Lorem ipsum");
}

Before the method invocation our file contained a single line without trailing spaces: before latin

Type the line that represents the file's content after the method completion:

Enter a short text
___

Create a free account to access the full topic