Java program read and write text file HELP
Design a Java program to read a text file called jazz.txt and write another text file called fourstar.txt. Each line of the input file consists of a star-rating and a jazz record title separated by a space, e.g.
**** Birth of the cool
** Miles Davis with Horns
*** Dig
**** Cookin' At the Plugged Nickel
Four stars is the maximum rating for any record. The lines have no extra spaces or tabs at the beginning or end. The program should write the names of those records that have a four-star rating to the output file, e.g.
Birth of the cool
Cookin' At the Plugged Nickel
In your answer clearly detail the design of the program as well as creating the code for the solution.