arraylist.print code example
Example: printing arraylist
for(int name: arraylist)
{
System.out.print(name + " ");
}
for(int name: arraylist)
{
System.out.print(name + " ");
}