Check out example codes for "java how to print a string[]". It will help you in understanding the concepts better.

Code Example 1

String[] array = new String[] {"John", "Mary", "Bob"};
System.out.println(Arrays.toString(array)); // [John, Mary, Bob]

Learn ReactJs, React Native from akashmittal.com