So I got this code so far:
int secondLargest = list.get(0); int largest = list.get(0); for (int i = 0; i < list.size(); i++) { if(list.get(i) > lar