+1 vote
in JAVA by
How do you print Array in Java?

1 Answer

0 votes
by

You can print an array by using the Arrays.toString() and Arrays.deepToString() method. Since array doesn't implement toString() by itself, just passing an array to System.out.println() will not print its contents but Arrays.toString() will print each element.

...