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