how to give a string a value in java code example Example: java new string with values new String[]{"day", "week", "month"}