Create a Reader or a Writer or a Stream. Specifically, create a FileReader, a FileWriter, a PrintWriter, a FileInputStream, or a FileOutputStream. Whenever you create an instance of one of these classes, you automatically create a file, unless one already exists, for instance
Be careful when putting something like this up, I have done that many times and most usually it results in wasted time. If you can show us the code that fails to createFile(), we can run the tests that duplicate the failure.
Be sure to run it several times before showing us.
"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Given just the quote you've shown, without any context, you are absolutely right. Constructing a FileReader or FileInputStream will never create a new file. Check the errata page for the book -- this is most likely a known issue.