Use Collections
with your code using it you can find minimum and maximum .
following is the example code for that:
List<Integer> list = Arrays.asList(100,2,3,4,5,6,7,67,2,32);
int min = Collections.min(list);
int max = Collections.max(list);
System.out.println(min);
System.out.println(max);
Output:
2
100