|
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]"
|
|
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 |
|
Recent Comments