Declare an array reference variable, week, and initialize it to an array containing the strings “mon”, “tue”, “wed”, “thu”, “fri”, “sat”, “sun” (in that order).
LANGUAGE: JAVA
CHALLENGE:
Declare an array reference variable, week, and initialize it to an array containing the strings “mon”, “tue”, “wed”, “thu”, “fri”, “sat”, “sun” (in that order).
SOLUTION:
String[] week = {"mon", "tue", "wed", "thu", "fri", "sat", "sun"};