use index to print list in java code example
Example: java first index of an arraylist
ArrayList<Type> array = new ArrayList<Type>();
System.out.printLn(array[0]);
ArrayList<Type> array = new ArrayList<Type>();
System.out.printLn(array[0]);