By screener
via javarevisited.blogspot.in
Published: Dec 28 2012 / 08:23
Unfortunately in Java Array doesn't implement toString to print contents and when passed to print() method of System.out it just print hashCode and type of elements, which is not complete information. Most of the time we need value of contents, similar to what List prints in console. This articles explores 3 ways to print values of contents from Array, both primitive and object array in Java.
Add your comment