Write a Java program that will ask the user for the (1) name, (2) gender, and (3) total debt of customers. For this program you will need a class named Customer where name should be a String, gender a String, and total debt a double. You also will need to create at least a constructor method.
Other requirements:
- You will need to create an array of Customer objects with a maximum size of 50 elements.
- This program should have a method to input each Customer object.
- You will need another method for sorting the array of Customer [sorted by total debt (ascending order)].
- Create a method that will display the output of the program.
- A main method that calls the method for all input, a sort method, and a method that reports the sorted list.