import java.util.*;
class Day{
private String work;
public void set(String work) { this.work = work; }
public String get() { return work; }
public void show() {
if(work==null) System.out.println("없습니다.");
else System.out.println(work + "입니다.");
}
}
class Main{
public static void main(String[] args) {
int choic,day;
String work;
Scanner sc=new Scanner(System.in);
Day[] april = new Day[30];
for(int i=0;i<april.length; i++)
april[i] = new Day();
System.out.println("이번달 스케쥴 관리 프로그램.");
for(;;) {
System.out.println("할일 입력(입력:1, 보기:2, 끝내기:3) >>");
choic = sc.nextInt();
if(choic==1) {
System.out.println("날짜(1~30)?");
day=sc.nextInt();
System.out.println("할일(빈칸없이입력)?");
work = sc.next();
april[day].set(work);
}
if(choic==2) {
System.out.println("날짜(1~30)?");
day= sc.nextInt();
System.out.print(day + "일의 할 일은 ");
april[day].show();
}
if(choic==3) {
return;
}
}
}
}