Create a program that begins by loading file onto arraylist

Assignment Help JAVA Programming
Reference no: EM131374107

Java - Album - MESSAGE FOR SOLUTION

1.) Using the attached catalog.txt file, create a program that begins by loading the file onto an arraylist of Album classes called Catalog. Each Album class consists of 3 attributes: artist name, album name, and an arraylist of Track objects, each containing the name of a song on the album.

2.) Implement the Comparable interface for the Album and the Track classes, defining their own compareTo() methods.

3.) Sort the Album arraylist using Collections.sort(), and display the sorted Albums by album name. For each Album, display the album name, artist name, and display all the Tracks (i.e. songs) in alphabetical order (use the sort() method too)

4.) Add another sort of the Album arraylist, by artist name. To implement this sort, you will need a Comparator interface, and a Comparator class.

Save the results of this sort in a separate ArrayList from the one sorted by album name. Print a dividing line of asterisks, and then display all the Albums by artist name. For each Album, also display the album name, and all its tracks (songs) in alphabetical order. For more hints, see pg. 661 in CH. 14 of Big Java, 5th Edition.

Reference no: EM131374107

Questions Cloud

What were triggers of cultural change in japan during 1990s : What were the triggers of cultural change in Japan during the 1990s? How is cultural change starting to affect traditional values in Japan?
What are some possible causes of delayed ignition : A gas burner is noisy and the flames are lifting off the burner. What is the most likely cause?
Write java application that lets you create strong password : Write a java application that lets you create a strong password. The password should follow the following some criteria: (use your own creativity to come up with specific requirements).
Complaint of severe abdominal pain : A woman comes in with a complaint of severe abdominal pain which occurs about once a month for a few days, then goes away until the next month. She has no fever nor any signs of pelvic disease.
Create a program that begins by loading file onto arraylist : Using the attached catalog.txt file, create a program that begins by loading the file onto an arraylist of Album classes called Catalog. Each Album class consists of 3 attributes.
Calculate average live weight of males and females : You are working in a museum studying a collection of primate skeletons. Thankfully, the sex and live body weight of each individual is known, so you are able to calculate the average live weight of males and females for this species (all measureme..
What are some probable causes of noise and vibration : What causes rollout of burner flames? What are some possible causes of burner flashback?
What should the american executive do : The local manager tells the American executive that the child is an orphan with no other means of support, and she will probably become a street child if she is denied work. What should the American executive do?
What are some of the key lessons you have learned : If you could go back in time to a few weeks ago, what are some of the things you know today that you would tell yourself? In other words, what are some of the key lessons you have learned? Similarly, what have you learned in researching that has m..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd