WeMo Connect

Setup Menus in Admin Panel

Calendar

public class Calendar {

public static void main(String[] args) {

System.out.println(“Calendar App”);

String[] calendarNames = {“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”};

int[] daysInMonth = {31, 29, 31, 30, 31, 30, 31, 30, 31, 30, 31, 30};

for (int month = 0; month < calendarNames.length; month++) {

System.out.printf(“\n——– %s ————-\n”, calendarNames[month]);

for (int day = 0; day < daysInMonth[month]; day++) {

System.out.printf(“%02d “,  day+1);

if ((day+1) % 7 == 0) {

System.out.printf(“\n”);

}

}

}

}

}

January 9, 2015

0 Responses on Calendar"

    Leave a Message

    Your email address will not be published. Required fields are marked *