Question: In Java Comparable Basketball Players Purpose To review interfaces and basic ArrayList usage. Directions: Your task is to write a class called BasketballPlayer. Your class

In Java
Comparable Basketball Players Purpose To review interfaces and basic ArrayList usage. Directions: Your task is to write a class called BasketballPlayer. Your class should have the following fields and methods: private String firstName private String lastName private double ppg (points per game public BasketballPlayer-constructor that initializes the fields of this object public String toString - returns a String of the form lastName, firstName (ppe Your BasketbalPlayer class also needs to implement the Comparable interface so that basketball players can be compared to one another. Players should be sorted first by points per game (higher comes first) then lexicographically by last name (ignoring case) and finally lexicographically by first name. You also need to create a class called Driver.java with a main method. In main Create three BasketballPlayer abjects Put the player objects into an ArrayList Print out the ArraylList Sort the ArrayList Print out the ArrayList a second time Example output Smith, Jay (12.7), Smith, DeShaun (12.7), Taylor, DeShaun (18.1)] CTaylor, DeShaun (18.1), Smith, DeShaun (12.7), Smith, Jay (12.7)1 When your program is working, export your Eclipse project to a zip file (File-> Export >General> Archive File) and upload it to the dropbox in Pilot. Make sure that the correct project in the Project Explorer view is selected when you do the export. You can right-click on it instead of going through the File menu to be sure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
