Check out example codes for "java new string with values". It will help you in understanding the concepts better.

Code Example 1

new String[]{"day", "week", "month"}

Learn ReactJs, React Native from akashmittal.com