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

Code Example 1

String[] arr = {"I am the one and only"};

Learn ReactJs, React Native from akashmittal.com