Write a Java program that iterates through the integers from 1 to 20, computing the square of each number and writing the information to a file called squares.txt. Use a Print Writer to write the file of the first 20 integers and their squares.
Arrange for two columns with a line of column headings at the top. You will find this easy to do using the printing() method of the Print Writer.