As in Self-Test Exercise 5, write some code that will create a stream namedoutStream that is a member of the class PrintWriter, and that connects thisstream 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 oldcontents of sam will not be lost, and the program output will be written after theold contents of the file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here