Wednesday, October 28, 2009

[Ljava.lang.String;@445c445c

If you've ever seen the above trying to do a println with an array, I have the solution for you!

wrong:
System.out.println(array);
right
System.out.println(Arrays.toString(array));

No comments: