print arraylist items java code example
Example 1: print arraylist java
Arrays.toString(list.toArray())
Example 2: printing arraylist
for(int name: arraylist)
{
System.out.print(name + " ");
}
Arrays.toString(list.toArray())
for(int name: arraylist)
{
System.out.print(name + " ");
}