Check out example codes for "array in java stack overflow". It will help you in understanding the concepts better.

Code Example 1

String[] myStringArray = new String[3];
String[] myStringArray = {"a", "b", "c"};
String[] myStringArray = new String[]{"a", "b", "c"};
String item = myStringArray[0]

Learn ReactJs, React Native from akashmittal.com