creat array of string java8 code example Example: java new string with values new String[]{"day", "week", "month"}