print ArrayList code example
Example 1: integer arraylist
ArrayList<Integer> contractValue = new ArrayList<Integer>();
Example 2: print arraylist java
Arrays.toString(list.toArray())
Example 3: printing arraylist
for(int name: arraylist)
{
System.out.print(name + " ");
}