Oct
08
|
Use the toString() method of the Arrays utility class.
Object[] array = new Object[] { "abc", "123", "test" }; String s = Arrays.toString(array); // s is now "[abc, 123, test]"
Leave a Reply
You must be logged in to post a comment.