Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Java program read and write text file HELP (https://www.askmehelpdesk.com/showthread.php?t=824524)

  • May 9, 2016, 04:36 AM
    h007
    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.
  • May 9, 2016, 06:42 AM
    CravenMorhead
    While I could bang this out in about 5 minutes and probably 20 lines of documented code, I am not going to do your homework for you. You need to learn how to do simple file IO and string comparisons.

    What do you have already? I can help you with road blocks from there on in.

  • All times are GMT -7. The time now is 04:27 AM.