public class ArrayMagic { public int findSecondLargestElement(int[] array) { //TODO: Write your code here if(array.length largest){ largest = num; } } int secondLargest = Integer.MIN_VALUE; for(int num: array){ if(num = secondLargest) { secondLargest = num; } } if(secondLargest == Integer.MIN_VALUE){ return -1; } return secondLargest; } } if(secondLargest == Integer.MIN_VALUE){..