I put a zip file and instructions are in the requirement docx.

for this assignment make a test file. (just edit and fill out the “”

The class provided is called CreditHistory and contains the following public methods:

– addRating which does not return anything and takes a rating (type int) as an argument. It adds the ratings to the list of ratings in the Credit History. Ratings must be between -5 (inclusive) and 5 (inclusive) to be included in the list. – getRatings which returns the list of all ratings stored in the Credit History, in the order that they were added in an ArrayList<Integer) (And ArrayList that contains Integer objects.) Note that you will have to compare the elements in the list with instances of the Integer object. To convert from the primitive int to the object Integer you can use an Integer constructor: for example new Integer(7) will create an Integer object that is equivalent to the int 7. – trimRatings will reduce the number of ratings stored to 10. The 10 most recently added ratings will be kept. Other ratings are discarded. – numOfRatings returns the number of ratings currently stored for the Credit History

run the test and it should work. If you have question, feel free to leave a message