java list first element code example
Example 1: java list get first element
list.get(0);
Example 2: java list get first element
!list_or_set.isEmpty()
Example 3: java first index of an arraylist
ArrayList<Type> array = new ArrayList<Type>();
System.out.printLn(array[0]);