As in Self-Test Exercise 5, write some code that will create a stream named
outStream that is a member of the class PrintWriter, and that connects this
stream to a text file named sam so that your program can send output to the file.
This time, however, do it in such a way that, if the file sam already exists, the old
contents of sam will not be lost, and the program output will be written after the
old contents of the file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here