java new string with values

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

Also in Java: