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

  Morgellons disease is delusional

Why do some scientists say that Morgellons disease is delusional? When there have been fibers extracted from patients that cannot be identified? Isn't that physical proof that something is affecting these people physically?

  Advantages of the java object class structure

Discussion Question: What are the advantages of the Java object class structure with its instance fields and methods

  supply a student tester class that tests all methods

Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName( ), addQuiz(int score), getTotalScore( ), and getAverageScore ( ).

  Application that converts u.s. dollar values to euro values

Help with writing an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversio ...there is moreshow problemI need help with this:

  Write a restful web service demo example using spring mvc

Write a restful web service demo example using spring mvc

  Write program that prompt the user to input a decimal number

Write a program that prompts the user to input a decimal number and outputs the number rounded to the nearest integer. Submit your compiled Java code for this assignment, compress the .java file into a single .zip file.

  Create a non-gui based java application

Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee.

  Write a program called product1ton

Write a program called Product1ToN to compute the product of integers 1 to 10 (i.e., 1×2×3×...×10). Try computing the product from 1 to 11, 1 to 12, 1 to 13 and 1 to 14.

  Create both method contract and the method specification

Your demonstrations of how to create both method contract and the method specification for the GetCourseByCourseID() method of the CourseList class were very well received by your team members

  A program that reads a four-digit number from the keyb

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Implement a simple relational dbms

In Problem Set, you began to implement a simple relational DBMS by taking the code base that we gave you and adding support for INSERT commands and for SELECT * commands involving a single table.

  Write and test a java program to read in multiple lines

A palindrome is defined as a string of 1 or more characters that contains a word, a phrase or a number that reads the same forward and backward, ignoring case, punctuation and white space.

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