-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
36 lines (31 loc) · 1.12 KB
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import java.io.BufferedInputStream;
import java.io.BufferedReader;
public class Main {
public static void main(String[] args) {
System.out.println("============== To Do ==============");
while(true) {
char userInput = '0';
System.out.println("1. 메모 입력");
System.out.println("2. 메모 리스트 출력");
System.out.println("3. 메모 읽기");
System.out.println("4. 메모 삭제");
System.out.println("5. 메모 검색");
System.out.println("6. 메모 정렬");
System.out.print("입력:> ");
try {
userInput = (char)System.in.read(); //read는 int return.
System.out.println("입력값: " + userInput);
} catch (Exception e) {
e.getMessage();
}
break;
}
}
//TO DO
/* 1. 메뉴 표시하기(메모 입력, 메모 리스트 출력, 메모 읽기, 메모 삭제, 메모 검색)
2. 메모 입력 하기(제목, 내용, 작성 시간)
3. 메모 리스트 출력하기(제목, 작성 시간)
4. 메모 읽기(제목, 내용, 작성 시간)
5. 메모 삭제
6. 메모 검색(제목 검색, 내용 검색, 시간 범위 검색)*/
}