See: What's the simplest way to print a Java array?
System.out.println(Arrays.toString(array));
One can also use Java Streams:
Arrays.stream(arr).forEach(e->System.out.print(e));
1.4m articles
1.4m replys
5 comments
57.0k users