print arraylist java

Java
Arrays.toString(list.toArray())
Source

Also in Java: