Question: You created a Salesperson class with fields for an ID number and sales values. Now, create an application that allows a user to enter values
You created a Salesperson class with fields for an ID number and sales values. Now, create an application that allows a user to enter values for an array of seven Salesperson objects. Offer the user the choice of displaying the objects in order by either ID number or sales value.
Save the application as SalespersonSort.java.
Step by Step Solution
3.59 Rating (167 Votes )
There are 3 Steps involved in it
public class Salesperson private int id private double sales Salespersonint idNum double amt id idNu... View full answer
Get step-by-step solutions from verified subject matter experts
