Menu

Task 5 Return Second Largest Element Arraylist Systemprint Original Values Int 0 Originala Q43839946

language is java and i need methods that work with this/** ** Task 5 is to return the second largest element in the ArrayList */ System.out.print(The original values are: ); for/** ** Task 5 is to return the second largest element in the ArrayList */ System.out.print(“The original values are: “); for (int i = 0; i < originalArrayList.getSize(); i++) { System.out.print (originalArrayList.getValue(i) + ” “); System.out.println(); //System.out.println(“The second largest element is ” + originalArray ** Task 6 is to return true if the list is already in ascending order */ System.out.print(“The original values are: “); for (int i = 0; i < originalArrayList.getSize(); i++) { System.out.print (originalArrayList.getValue(i) + ” “); System.out.println(); //if (originalArrayList. inorder() //System.out.println(‘in ascending order); Welse { /System.out.println(“not in ascending order”); Show transcribed image text /** ** Task 5 is to return the second largest element in the ArrayList */ System.out.print(“The original values are: “); for (int i = 0; i

Expert Answer


Answer to /** ** Task 5 is to return the second largest element in the ArrayList */ System.out.print(“The original values are: “);…

OR