We are required in our assignment to find the second smallest integer in one array recursively. However, for the sake of understanding the subject more, I want to do it iter
Simply, you can do this
int[] arr = new int[]{34, 45, 21, 12, 54, 67, 15}; Arrays.sort(arr); System.out.println(arr[1]);