public void print(int mm,int yy){
		
		if(mm<0||mm>11)
			throw new IllegalArgumentException("Month "+mm+" bad, must be 0-11.");
		
		System.out.print(months[mm]);
		System.out.print(" ");
		System.out.println(yy);
		
		System.out.println("Su Mo Tu We Th Fr Sa");
		
		GregorianCalendar calendar=new GregorianCalendar(yy,mm,1);
		int leadGap=calendar.get(Calendar.DAY_OF_WEEK)-1;
		int daysInMonth=dom[mm];
		if(calendar.isLeapYear(calendar.get(Calendar.YEAR))&&mm==1){
			daysInMonth=daysInMonth+1;
		}
		for(int i=0;i<leadGap;i++)
			System.out.print("  ");
		for(int i=1;i<=daysInMonth;i++){
			if(i<10)
				System.out.print(" ");
			System.out.print(i);
			
			if((leadGap+i)%7==0)
				System.out.println();
			else
				System.out.print(" ");
		}
	}