Write a program to get the lowest element from given input by using one of the TreeSet methods.
Note the elements in TreeSet by default sorted in ascending order.
Input (TreeSet) |
Output (Integer) |
[412, 410, 402, 404, 405, 406, 409, 411] |
402 |
[15, 25, 99, 40, 10, 20, 30] |
10 |
[21, 2, 31, 25, 30, 0, 32, 22, 12] |
0 |
null |
null |