-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSAT.java
More file actions
98 lines (71 loc) · 2.32 KB
/
CSAT.java
File metadata and controls
98 lines (71 loc) · 2.32 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class CSAT{
public static void main(String[] args) throws IOException {
showIntro(); // Intro 보여주기
int optionMain = onGetOption(); //옵션 받아오기
}
/*시작화면 보여주는 메소드*/
private static void showIntro(){
System.out.println("==================================");
System.out.println("==================================");
System.out.println("==================================");
System.out.println("대학수학능력시험 영어 영역 단어");
System.out.println("Q: 단어 테스트\nA: 단어 외우기\nDebug: 디버그");
}
/*인트로*/
private static int onGetOption() throws IOException {
//TODO 초기값 지정 안해도 되는지 확인해보기
int returnOption = 0;
//TODO 액션 지정 필요
int inputOption = Integer.parseInt(Task.readString());
switch(inputOption){
case 'A':
returnOption = 0;
case 'Q':
returnOption = 1;
}
return returnOption;
}
}
class Data{
//TODO BufferedReader로 외부 파일 불러오도록 만들기
String usrName; // 사용자 이름
String usrMemo; // 사용자 정보
String usrCreateTime; // 생성 시간
public Data(){
usrName = "";
usrMemo = "";
usrCreateTime = "";
}
public String[] getUsrData(boolean def){
String[] pushData= {usrName, usrMemo, usrCreateTime};
return pushData;
}
}
class MemoryTask{
public static void onMemory(){
}
}
class Task{
/*String 읽어오는 메소드*/
public static String readString() throws IOException{
BufferedReader strReader = new BufferedReader(new InputStreamReader(System.in));
String readOptionString = strReader.readLine();
//TODO Try & catch로 만들기
readOptionString = "7"; //실패 했을 때 에러 코드
return readOptionString;
}
}
class Debug{
public static void onDebug(int debugOption){
switch(debugOption){
case 0:{
}
case 1:{
}
default:
}
}
}