Write a simple program that reads 10 numbers and stores them into one dimensional array of objects of Integer type. Once the user enters all numbers, all 10 elements should be displayed. The program has two methods, namely sortAscending() and sortDescending(). Both methods take an array of Integer as an argument and returns a sorted arraylist. In the main(), the program should print the two sorted lists.
Hint: you may use the static method sort () of Collections class. For sorting numbers in descending order, you may want to use method reverseOrder () in Collections class along with sort method. In other words, use sort() method of Collections class to sort the elements in ascending order and then pass the arraylist to the method reverseOrder() to flip or sort the arraylist in descending order i.e. Collections.sort(arraylist, Collections.reverseOrder());Possible Output **Enter 10 numbers** 1: 34 2: 76 3: 80 4: 43 5: 76 6: 90 7: 150 8: 376 9:42 10: 0 Numbers are: 34 76 80 43 76 90 150 376 42 0 Numbers in ascending order: [0, 34, 42, 43, 76, 76, 80, 90, 150, 376] Numbers in descending order: [376, 150, 90, 80, 76, 76, 43, 42, 34, 0]