Question: JAVA -FAST PLEASE! Exercise 1. Classes Define the Rider class for which the following information is stored: a) name (string) b) title (strings), c) nr

JAVA
-FAST PLEASE!
JAVA-FAST PLEASE! Exercise 1. Classes Define the Rider class for which the

Exercise 1. Classes Define the Rider class for which the following information is stored: a) name (string) b) title (strings), c) nr _tours (int) d) int tours[] (an array of distances of tours) For this class, implement: - the appropriate constructors (with no-arguments, with argum. and copy constructor) - the appropriate get/set methods and the following methods: - print () which will print all the information about the rider in the following format: name: title: nr_tours. - input () which inputs the data about the rider. In the main() method class: - implement a method maxTours() to accept an array of Riders and return the Rider with maximum number of tours - implement a method riders_Champions () to accept the array of Riders and return an array/list of Riders that hold the title "champion". - In the main method: create an array of Riders; input the data about each Rider for a specific rider, add a tour in the array tours of the rider print the data of the rider with maximum tours print the data about the riders that hold the title "champion

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!