package fry;
import java.util.Arrays;
import java.io.IOException;
public class fry{
public static class date extends FRYLayout{
 public String mon;
public Integer day;
public Integer year;
public String holiday;
public date(String mon,Integer day,Integer year,String holiday){

 super();
this.holiday=holiday;
this.year=year;
this.day=day;
this.mon=mon;}
public date(){
super();}
public String toString(){
return mon.toString()+"|"+day.toString()+"|"+year.toString()+"|"+holiday.toString();
}}public static Boolean isValidDate(String mon,Integer day) {
if ( day>28&&mon.equals("Feb") )
{
return false;
}

if ( day.equals(31) )
{
if ( mon.equals("Sep") ||mon.equals("Apr") ||mon.equals("Jun") ||mon.equals("Nov") )
{
return false;
}
else
{
return true;
}

}

return true;}

public static void main(String[] args) throws IOException{
;
FRYTable holidays = new FRYTable( new date() );
holidays.readInput(IOUtils.Read("holidays.txt", ","));
String holiday_name;
FRYTable calendar = new FRYTable( new date() );
FRYList<String> holiday_list;
FRYTable matching_days;
for (String mon: new FRYList<String>(Arrays.asList(new String("Jan"), new String("Feb"), new String("Mar"), new String("Apr"), new String("May"), new String("Jun"), new String("Jul"), new String("Aug"), new String("Sep"), new String("Oct"), new String("Nov"), new String("Dec")))) {
{
for (Integer day: FRYListFactory.getGeneratedFryList(1,31)) {

