Return the First Element in a List code example
Example 1: java list get first element
set.iterator().next();
Example 2: how to find first value of an list
// Python
list = [1,2,3]
firstdigit = list[0] // 1
list = ['Hello', 'bye', 'Adios']
firstvalue = list[0] // 'Hello'