Check out example codes for "array string java in one line". It will help you in understanding the concepts better.

Code Example 1

String[] stringarray = {"string1", "string2", "string3"};

Learn ReactJs, React Native from akashmittal.com