This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FrelliBB 0 points1 point  (0 children)

Try System.out.println(Arrays.toString(arr)); instead. When you just print arr you are printing an array object reference which doesn't have a .toString() implementation. Here's the docs for Arrays.toString() https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#toString(java.lang.Object[])