Help!

Ok here is the goal of the program. The user inputs the stats of any number of players that they chose and my program needs to calculate the best and worst slugging percentage of the players and then display all the stats of those best and worst players.

My question is how do i compare and display each player and their included stats?

With a compare(obj, obj) or compareTo(obj) method, a loop, a toString() method, and the println(string) method.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.