Question: Write a Java application that contains the following: 1. A static method named removeLargetodd that receives an unsorted list of integers of type ArrayUnsortedList class.
Write a Java application that contains the following: 1. A static method named removeLargetodd that receives an unsorted list of integers of type ArrayUnsortedList class. Your method should remove the largest odd number, if any exist, from the given list. Keep the list unchanged and return 1 in case there are no odd numbers in the given list. 2. A main method that creates an unsorted list of integers. Fill the list with any number of integers from the user. Print the list on screen. Use removeLargetodd method to remove the largest odd number from the list then print the list after removing the element. Print "nothing" if the list does not contain any odd number. Sample2 Run: D ran: Unsorted Last elements: List: 105040501080603090 nothing; the list diges not contain any odd number BUILD successFuL (total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
