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

Code Example 1

String[] MONTHS = {
    "", "Jan", "Feb", "Mar", "Apr", "May", "Jun", 
    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
...
System.out.println(MONTHS[m]);

Learn ReactJs, React Native from akashmittal.com