Answered step by step
Verified Expert Solution
Question
1 Approved Answer
And this is the classes I already created: This is a Java exercise. Keep the project you had so far (with the car, vehicle, roster
And this is the classes I already created:
This is a Java exercise. Keep the project you had so far (with the car, vehicle, roster and my Program classes) and create 5 cars in your roster. 1. Create a recursive method called "reverse" in myProgram to reverse the characters of a string and then use to reverse the names of the car owners. Hint: You may need to check the documentation of substring. Don't change the names inside the car objects, just print the reversed names. You have to use recursion 2. Create another method in myProgram that sorts the cars as for their registration number, using bubble sort. Your cars are already in an Arraylist in your "Roster". This method should modify this Arraylist and make the "Roster" have a sorted one in the endStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started