What are some good ways to write to files in Java?