How do I create a file and write to it in Java?

What’s the simplest way to create and write to a (text) file in Java?