Cheers!
Type: Posts; User: Junky
Cheers!
API is the list of all packages, classes and methods that are supplied in standard Java. You should have it bookmarked so you can refer to it often. Or download a copy and install it on you computer.
The error message tells you what is wrong. go to the API for the FileWriter class and find the println method.
We cannot see your screen. "I got an error" provides zero information. Copy and paste the exact error message.
Each time you open a PrintWriter to write to a file it will overwrite what is already there. Imagine you write the following to the file:
One
Two
Three
Then run the program again and write...