标题: 打印日历 [打印本页] 作者: zapoo 时间: 2016-2-16 20:19 标题: 打印日历 package com.calender.java;
import java.util.Scanner;
public class Calendar {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入年份");
int year = sc.nextInt();
System.out.println("请输入月份");
int month = sc.nextInt();
boolean flag = isLeapYear(year);
//System.out.println(flag);
int monthSumDay = getMonthDay(month, flag);
//System.out.println(monthDay);
int week = getWeek(year, month);
//System.out.println(week);