From 9b2077d94477952c846a80d7e50ddc26c4fcf48f Mon Sep 17 00:00:00 2001 From: sung-won95 Date: Wed, 25 Oct 2023 14:35:30 +0900 Subject: [PATCH 01/26] soung won --- src/src/soungwon/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/soungwon/Case1.java diff --git a/src/src/soungwon/Case1.java b/src/src/soungwon/Case1.java new file mode 100644 index 0000000..4a7adbf --- /dev/null +++ b/src/src/soungwon/Case1.java @@ -0,0 +1,12 @@ +package soungwon; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 4db6aef0015050fc0a016609c45cd31e60811c5b Mon Sep 17 00:00:00 2001 From: m2bi Date: Wed, 25 Oct 2023 14:35:38 +0900 Subject: [PATCH 02/26] jh --- src/src/JH/Case1.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/src/JH/Case1.java diff --git a/src/src/JH/Case1.java b/src/src/JH/Case1.java new file mode 100644 index 0000000..98deeb0 --- /dev/null +++ b/src/src/JH/Case1.java @@ -0,0 +1,9 @@ +package JH; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + } +} + + From b0bf3c81f9fe2c9782ebc300d87e078336973f0b Mon Sep 17 00:00:00 2001 From: minhyeongKang Date: Wed, 25 Oct 2023 14:35:58 +0900 Subject: [PATCH 03/26] minhyeong --- src/src/minhyeong/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/minhyeong/Case1.java diff --git a/src/src/minhyeong/Case1.java b/src/src/minhyeong/Case1.java new file mode 100644 index 0000000..1177cb3 --- /dev/null +++ b/src/src/minhyeong/Case1.java @@ -0,0 +1,12 @@ +package minhyeong; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 20d02630782b8312087f2364db98a10f02ab8a03 Mon Sep 17 00:00:00 2001 From: k-jaehyun Date: Wed, 25 Oct 2023 14:36:01 +0900 Subject: [PATCH 04/26] =?UTF-8?q?=EC=98=B9=EC=98=B9=EC=98=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/jaehyun/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/jaehyun/Case1.java diff --git a/src/src/jaehyun/Case1.java b/src/src/jaehyun/Case1.java new file mode 100644 index 0000000..1533a78 --- /dev/null +++ b/src/src/jaehyun/Case1.java @@ -0,0 +1,12 @@ +package jaehyun; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 178dcdf048668ce02c9cf4df6daf3e8400756da6 Mon Sep 17 00:00:00 2001 From: An Date: Wed, 25 Oct 2023 14:36:10 +0900 Subject: [PATCH 05/26] taein --- src/taein/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/taein/Case1.java diff --git a/src/taein/Case1.java b/src/taein/Case1.java new file mode 100644 index 0000000..8befc4b --- /dev/null +++ b/src/taein/Case1.java @@ -0,0 +1,12 @@ +package taein; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 22d54eaffaa2863a3c5286c80fb2c823a64c077a Mon Sep 17 00:00:00 2001 From: wonowonow Date: Wed, 25 Oct 2023 14:36:20 +0900 Subject: [PATCH 06/26] wonho --- src/src/wonho/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/wonho/Case1.java diff --git a/src/src/wonho/Case1.java b/src/src/wonho/Case1.java new file mode 100644 index 0000000..6375795 --- /dev/null +++ b/src/src/wonho/Case1.java @@ -0,0 +1,12 @@ +package wonho; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From be0fd8d4ef9f30cb6806a92d74cd97807f577b63 Mon Sep 17 00:00:00 2001 From: ToToRo_1106 <11wjdfk@naver.com> Date: Wed, 25 Oct 2023 14:36:59 +0900 Subject: [PATCH 07/26] ADD : Junghwan --- src/src/Junghwan/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/Junghwan/Case1.java diff --git a/src/src/Junghwan/Case1.java b/src/src/Junghwan/Case1.java new file mode 100644 index 0000000..33db5e2 --- /dev/null +++ b/src/src/Junghwan/Case1.java @@ -0,0 +1,12 @@ +package Junghwan; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 82b3a094962aae70e4d049b7e4ead7dcb70bc785 Mon Sep 17 00:00:00 2001 From: JEONGYOUNGGYU Date: Wed, 25 Oct 2023 14:37:24 +0900 Subject: [PATCH 08/26] =?UTF-8?q?=EB=B3=B4=EC=B6=A9=EB=B0=98=EC=8B=9C?= =?UTF-8?q?=EC=9E=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/younggyu/Case1.java | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/src/younggyu/Case1.java diff --git a/src/src/younggyu/Case1.java b/src/src/younggyu/Case1.java new file mode 100644 index 0000000..ddb0884 --- /dev/null +++ b/src/src/younggyu/Case1.java @@ -0,0 +1,7 @@ +package younggyu; + +public class Case1 { + public void gameStart(int randomNum){ + // 여기에 작성해 주세요 + } +} From 9ac8c443cb7bf35ad877f3cf008f80f5eb635876 Mon Sep 17 00:00:00 2001 From: ckdnqls Date: Wed, 25 Oct 2023 14:38:05 +0900 Subject: [PATCH 09/26] =?UTF-8?q?"=EC=B0=A8=EC=9A=B0=EB=B9=88=20"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/woobin/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/woobin/Case1.java diff --git a/src/src/woobin/Case1.java b/src/src/woobin/Case1.java new file mode 100644 index 0000000..54755af --- /dev/null +++ b/src/src/woobin/Case1.java @@ -0,0 +1,12 @@ +package woobin; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 136bcaec56d86002b24f08ad406bebe8c9dc9f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=80=EC=B1=84?= Date: Wed, 25 Oct 2023 14:39:24 +0900 Subject: [PATCH 10/26] first --- src/src/eunchae/Case1.java | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/src/eunchae/Case1.java diff --git a/src/src/eunchae/Case1.java b/src/src/eunchae/Case1.java new file mode 100644 index 0000000..ce57043 --- /dev/null +++ b/src/src/eunchae/Case1.java @@ -0,0 +1,4 @@ +package eunchae; + +public class Case1 { +} From 05817bb71b0afe53ae38ac24c74dfc3b84a63017 Mon Sep 17 00:00:00 2001 From: BMDK9 Date: Wed, 25 Oct 2023 14:46:11 +0900 Subject: [PATCH 11/26] Start --- src/src/SungHun/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/SungHun/Case1.java diff --git a/src/src/SungHun/Case1.java b/src/src/SungHun/Case1.java new file mode 100644 index 0000000..50a063b --- /dev/null +++ b/src/src/SungHun/Case1.java @@ -0,0 +1,12 @@ +package SungHun; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From 7d8006888df698cb69e9bba5d9440b319d624605 Mon Sep 17 00:00:00 2001 From: m2bi Date: Wed, 25 Oct 2023 15:14:08 +0900 Subject: [PATCH 12/26] game make --- src/src/.idea/.gitignore | 8 ++++++++ src/src/.idea/misc.xml | 6 ++++++ src/src/.idea/modules.xml | 8 ++++++++ src/src/.idea/vcs.xml | 6 ++++++ src/src/JH/Case1.java | 14 ++++++++++++++ src/src/Main.java | 4 +--- src/src/base/Case1.java | 3 --- .../spartaSpringBasic/.idea/.gitignore | 8 ++++++++ .../production/spartaSpringBasic/.idea/misc.xml | 6 ++++++ .../spartaSpringBasic/.idea/modules.xml | 8 ++++++++ .../production/spartaSpringBasic/.idea/vcs.xml | 6 ++++++ .../production/spartaSpringBasic/JH/Case1.class | Bin 0 -> 1022 bytes .../out/production/spartaSpringBasic/Main.class | Bin 0 -> 455 bytes .../spartaSpringBasic/base/Case1.class | Bin 0 -> 352 bytes .../spartaSpringBasic/spartaSpringBasic.iml | 11 +++++++++++ src/src/spartaSpringBasic.iml | 11 +++++++++++ 16 files changed, 93 insertions(+), 6 deletions(-) create mode 100644 src/src/.idea/.gitignore create mode 100644 src/src/.idea/misc.xml create mode 100644 src/src/.idea/modules.xml create mode 100644 src/src/.idea/vcs.xml create mode 100644 src/src/out/production/spartaSpringBasic/.idea/.gitignore create mode 100644 src/src/out/production/spartaSpringBasic/.idea/misc.xml create mode 100644 src/src/out/production/spartaSpringBasic/.idea/modules.xml create mode 100644 src/src/out/production/spartaSpringBasic/.idea/vcs.xml create mode 100644 src/src/out/production/spartaSpringBasic/JH/Case1.class create mode 100644 src/src/out/production/spartaSpringBasic/Main.class create mode 100644 src/src/out/production/spartaSpringBasic/base/Case1.class create mode 100644 src/src/out/production/spartaSpringBasic/spartaSpringBasic.iml create mode 100644 src/src/spartaSpringBasic.iml diff --git a/src/src/.idea/.gitignore b/src/src/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/src/src/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/src/src/.idea/misc.xml b/src/src/.idea/misc.xml new file mode 100644 index 0000000..a818314 --- /dev/null +++ b/src/src/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/src/.idea/modules.xml b/src/src/.idea/modules.xml new file mode 100644 index 0000000..209385b --- /dev/null +++ b/src/src/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/src/.idea/vcs.xml b/src/src/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/src/src/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/src/JH/Case1.java b/src/src/JH/Case1.java index 98deeb0..c9e689c 100644 --- a/src/src/JH/Case1.java +++ b/src/src/JH/Case1.java @@ -1,8 +1,22 @@ package JH; +import java.util.Scanner; public class Case1 { public void gameStart(int randomNum){ //여기에 작성해 주세요 + Scanner sc = new Scanner(System.in); + while(true) { + Integer userInput = Integer.parseInt(sc.nextLine()); + + if (randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + } } } diff --git a/src/src/Main.java b/src/src/Main.java index 9983b50..f4e377d 100644 --- a/src/src/Main.java +++ b/src/src/Main.java @@ -1,10 +1,8 @@ -import base.Case1; +import JH.Case1; public class Main { public static void main(String[] args) { Case1 case1 = new Case1(); - case1.gameStart(3); - } } \ No newline at end of file diff --git a/src/src/base/Case1.java b/src/src/base/Case1.java index 75aa89c..3379d28 100644 --- a/src/src/base/Case1.java +++ b/src/src/base/Case1.java @@ -3,10 +3,7 @@ public class Case1 { public void gameStart(int randomNum){ //여기에 작성해 주세요 - } - - } diff --git a/src/src/out/production/spartaSpringBasic/.idea/.gitignore b/src/src/out/production/spartaSpringBasic/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/src/src/out/production/spartaSpringBasic/.idea/misc.xml b/src/src/out/production/spartaSpringBasic/.idea/misc.xml new file mode 100644 index 0000000..a818314 --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/src/out/production/spartaSpringBasic/.idea/modules.xml b/src/src/out/production/spartaSpringBasic/.idea/modules.xml new file mode 100644 index 0000000..209385b --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/src/out/production/spartaSpringBasic/.idea/vcs.xml b/src/src/out/production/spartaSpringBasic/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/src/out/production/spartaSpringBasic/JH/Case1.class b/src/src/out/production/spartaSpringBasic/JH/Case1.class new file mode 100644 index 0000000000000000000000000000000000000000..c550237ed153f3943358572a92f5e78a3b64e13d GIT binary patch literal 1022 zcmZuwT~8B16g|@xwq2G&3oR&u*3Y&AD}E~h$)co*>$s2<&GoV2y_f-FboVM`X5W_W7`uAhJfub zBns-J-83zy<$ER16}+*iL&K=-A7hwIp9;y8C1}jRI1&tDM||)Kwj&tE)0yJ~N-`1J zPK^jBFsb2;fwP$E$yET$@kC9yMA71IThNw7bzAl`WGu-sZD0oH8MIwq_eJq7Lo#jk z_v_NBhA9IVafz61$16*`GR%_BTrqGJ*J$7LWxtafZjsua31MUyLiytBO&!-Ut6|Q- zJWPhMo@IS#lGKuC>(bNHj2$*NVlwhC3u~{kfUrZ9&CQuDMMbN2HIN zexoAXm%LJ^OuW#n@_L!Ow%m7A@(|}Xr{+4i@Cngrb9y}v)Cgdn7ZEKLPy zqK9Zrl871lZ!(Bt0V5JVfyco{|GO as*hpdNdA!85vDav#D7DV*5s)az_WjuHQHMM literal 0 HcmV?d00001 diff --git a/src/src/out/production/spartaSpringBasic/Main.class b/src/src/out/production/spartaSpringBasic/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..ca5e5485b5bcbbc6b0979a1c39a6663d497a6334 GIT binary patch literal 455 zcmZvY%}&BV6ot=FXlX4!g5v+e9cW_X8g)ZrlvG_{NQ|qYPU;XSNh!XU8%Z?r0emRq z8PKqC7WdA%_nvQV=Ii_Y6TmqRJmg?G$onY37N`#8iws6GiG#brP(_)5eWnwgT?kms zR^LHUpxC_%I&!K`JvgvTSo7hdB;dw!ta_PD>B~2-&3uKo8>thf&g4l6R6?Do+u3-a z(t9}=u~G{sksS49s*V0F=Cfx#rQjX7Wcr!7#3 z%(?BXz0G4z79T#E@}_GC#$f9B75jSfvV>1#{tO4)MBZuQQr9V4=q7 zF9%S^29=9VG*~g_E@1{*{($o^hZ`Q-Z}3)>G6_VZNM4CQYG{q616$apGMydlk|(f7 Hox}bQgEmfx literal 0 HcmV?d00001 diff --git a/src/src/out/production/spartaSpringBasic/base/Case1.class b/src/src/out/production/spartaSpringBasic/base/Case1.class new file mode 100644 index 0000000000000000000000000000000000000000..6962a80320a52a4a9ffb2f45fb7da775e52e42fd GIT binary patch literal 352 zcmZWkyH3ME5S)!2n;1jFL-ceB1r`MrfhH1CBnyfl_iN`AF7iXVIQ$nC5(OW?Ms9icuT9Ysf~l=-`#|uN$p>KfZn@t sB&cJ+!=Yfjdm!~l7~vR0K^5Q1RnvdMpc7u~hI^q(M>r9br90u-FAHuswEzGB literal 0 HcmV?d00001 diff --git a/src/src/out/production/spartaSpringBasic/spartaSpringBasic.iml b/src/src/out/production/spartaSpringBasic/spartaSpringBasic.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/spartaSpringBasic.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/src/spartaSpringBasic.iml b/src/src/spartaSpringBasic.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/src/src/spartaSpringBasic.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file From a40ccd1e1a618b39781977fbf217ac07cd975f7a Mon Sep 17 00:00:00 2001 From: wonowonow Date: Wed, 25 Oct 2023 15:16:22 +0900 Subject: [PATCH 13/26] =?UTF-8?q?=C3=AC=EC=88=AB=EC=9E=90=EB=A7=9E?= =?UTF-8?q?=EC=B6=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/wonho/Case1.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/src/wonho/Case1.java b/src/src/wonho/Case1.java index 6375795..3178d52 100644 --- a/src/src/wonho/Case1.java +++ b/src/src/wonho/Case1.java @@ -1,7 +1,26 @@ package wonho; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ + + Scanner scanner = new Scanner(System.in); + + String string = "아직 못맞춤"; + + while (string == "아직 못맞춤") { + System.out.print("0부터 100까지의 숫자를 입력하세요: "); + Integer answer = Integer.parseInt(scanner.nextLine()); + if (answer < randomNum) { + System.out.println("UP"); + } else if (answer > randomNum) { + System.out.println("Down"); + } else { + System.out.println("정답입니다~~~~~~~"); + string = "이제 맞춤"; + } + } //여기에 작성해 주세요 } From 46e82a5c0ea3f6e26843098b617a9ebfbc6a33d3 Mon Sep 17 00:00:00 2001 From: ckdnqls Date: Wed, 25 Oct 2023 15:16:54 +0900 Subject: [PATCH 14/26] =?UTF-8?q?"random=20=EC=88=AB=EC=9E=90=EB=A7=9E?= =?UTF-8?q?=EC=B6=94=EA=B8=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/woobin/Case1.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/src/woobin/Case1.java b/src/src/woobin/Case1.java index 54755af..42ef4f9 100644 --- a/src/src/woobin/Case1.java +++ b/src/src/woobin/Case1.java @@ -1,12 +1,25 @@ package woobin; +import java.util.Scanner; public class Case1 { - public void gameStart(int randomNum){ + Scanner scanner = new Scanner(System.in); + public void gameStart(int randomNum) { //여기에 작성해 주세요 + String string = "아직 못맞춤"; + while (string == "아직 못맞춤") { + Integer userInput = Integer.parseInt(scanner.nextLine()); + if (randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + string = "맞춤"; + } + } } - } From f3ef4c150fccae341b35802bb468d863a56a2a0c Mon Sep 17 00:00:00 2001 From: An Date: Wed, 25 Oct 2023 15:19:12 +0900 Subject: [PATCH 15/26] taein assignment#1 --- src/taein/Case1.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/taein/Case1.java b/src/taein/Case1.java index 8befc4b..550df32 100644 --- a/src/taein/Case1.java +++ b/src/taein/Case1.java @@ -1,9 +1,22 @@ package taein; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ - //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); + while (true) { + Integer userInput = Integer.parseInt(scanner.nextLine()); + if (randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + } } From d175ec387c66e5af9ea33ca362bcea7bb9d95eb4 Mon Sep 17 00:00:00 2001 From: minhyeongKang Date: Wed, 25 Oct 2023 15:20:12 +0900 Subject: [PATCH 16/26] gameTestCompleted --- src/src/minhyeong/Case1.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/src/minhyeong/Case1.java b/src/src/minhyeong/Case1.java index 1177cb3..82a4ffb 100644 --- a/src/src/minhyeong/Case1.java +++ b/src/src/minhyeong/Case1.java @@ -1,12 +1,24 @@ package minhyeong; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); + while (true) { + Integer userInput = Integer.parseInt(scanner.nextLine()); + if (randomNum < userInput) { + System.out.println("DOWN!"); + } else if (randomNum > userInput) { + System.out.println("UP!"); + } else { + System.out.println("GOOD :)"); + break; + } + } } - - } From 8aa7069e58b5a275a55df51e51d97772d80a17f6 Mon Sep 17 00:00:00 2001 From: JEONGYOUNGGYU Date: Wed, 25 Oct 2023 15:21:10 +0900 Subject: [PATCH 17/26] =?UTF-8?q?basic=20:=20=EB=9E=9C=EB=8D=A4=EC=88=AB?= =?UTF-8?q?=EC=9E=90=EB=A7=9E=EC=B6=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/younggyu/Case1.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/src/younggyu/Case1.java b/src/src/younggyu/Case1.java index ddb0884..bd2464e 100644 --- a/src/src/younggyu/Case1.java +++ b/src/src/younggyu/Case1.java @@ -1,7 +1,25 @@ package younggyu; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ + Scanner scanner = new Scanner(System.in); + + String string = "아직 못맞춤"; + // 여기에 작성해 주세요 + + while(true) { + Integer userInput = Integer.parseInt(scanner.nextLine()); + if(randomNum < userInput) { + System.out.println("Down"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + } } } From 35b76fc500b13fca0f51028903c9bab46a1d8378 Mon Sep 17 00:00:00 2001 From: k-jaehyun Date: Wed, 25 Oct 2023 15:22:50 +0900 Subject: [PATCH 18/26] =?UTF-8?q?=EA=B0=90=EC=82=AC=ED=95=A9=EB=8B=88?= =?UTF-8?q?=EB=8B=A4~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/jaehyun/Case1.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/src/jaehyun/Case1.java b/src/src/jaehyun/Case1.java index 1533a78..ec3b024 100644 --- a/src/src/jaehyun/Case1.java +++ b/src/src/jaehyun/Case1.java @@ -1,9 +1,30 @@ package jaehyun; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ //여기에 작성해 주세요 + Scanner sc = new Scanner(System.in); + + String string = "아직 못맞춤"; + + + int i=0; + while (i==0) { + + Integer userInput = Integer.parseInt(sc.nextLine()); + + if (randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + i=999999999; + } + } } From 52e72c9c979885fa1931da3b67cb008c929ab76f Mon Sep 17 00:00:00 2001 From: ToToRo_1106 <11wjdfk@naver.com> Date: Wed, 25 Oct 2023 15:23:32 +0900 Subject: [PATCH 19/26] =?UTF-8?q?ADD=20:=20=EC=88=AB=EC=9E=90=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=94=EA=B8=B0=20=EA=B2=8C=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/Junghwan/Case1.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/src/Junghwan/Case1.java b/src/src/Junghwan/Case1.java index 33db5e2..08eefd1 100644 --- a/src/src/Junghwan/Case1.java +++ b/src/src/Junghwan/Case1.java @@ -1,12 +1,24 @@ package Junghwan; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ + Scanner scanner = new Scanner(System.in); //여기에 작성해 주세요 - + while (true){ + Integer userInput = Integer.parseInt(scanner.nextLine()); + if ( randomNum < userInput){ + System.out.println("Down"); + } else if ( randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("Good"); + System.out.println("축하해용가륑"); + break; + } + } } - - } From 2e1719684aff7d596c5c1425e4c065d35070cfdc Mon Sep 17 00:00:00 2001 From: yeongdo99 Date: Wed, 25 Oct 2023 15:24:49 +0900 Subject: [PATCH 20/26] =?UTF-8?q?=EA=B3=BC=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/yeongdo/Case1.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/src/yeongdo/Case1.java diff --git a/src/src/yeongdo/Case1.java b/src/src/yeongdo/Case1.java new file mode 100644 index 0000000..a0492e5 --- /dev/null +++ b/src/src/yeongdo/Case1.java @@ -0,0 +1,28 @@ +package yeongdo; + +import java.util.Scanner; + +public class Case1 { + + public void gameStart(int randomNum){ + Scanner sc = new Scanner(System.in); + + while (true) { + + Integer userInput = Integer.parseInt(sc.nextLine()); + + + if (randomNum < userInput) { + System.out.println("DOWN"); + + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + } + + + } +} From 0a461be0413bb8b677700ebe3687527f69a3e5ed Mon Sep 17 00:00:00 2001 From: wkdehf217 Date: Wed, 25 Oct 2023 15:51:29 +0900 Subject: [PATCH 21/26] =?UTF-8?q?=EC=BB=A4=EB=B0=8B=EC=9E=85=EB=8B=88?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/hanjoon/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/hanjoon/Case1.java diff --git a/src/src/hanjoon/Case1.java b/src/src/hanjoon/Case1.java new file mode 100644 index 0000000..3c758c0 --- /dev/null +++ b/src/src/hanjoon/Case1.java @@ -0,0 +1,12 @@ +package hanjoon; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From e733c80ccb0fd3298e3a4eee1fc47329cddaafd7 Mon Sep 17 00:00:00 2001 From: wkdehf217 Date: Wed, 25 Oct 2023 15:55:05 +0900 Subject: [PATCH 22/26] =?UTF-8?q?=EC=BB=A4=EB=B0=8B=EC=9E=85=EB=8B=88?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/hanjoon/Case1.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/src/hanjoon/Case1.java b/src/src/hanjoon/Case1.java index 3c758c0..b53cfae 100644 --- a/src/src/hanjoon/Case1.java +++ b/src/src/hanjoon/Case1.java @@ -1,12 +1,28 @@ package hanjoon; +import java.util.Scanner; + public class Case1 { public void gameStart(int randomNum){ //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); + + while (true) { + Integer userInput = Integer.parseInt(scanner.nextLine()); + + if (randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("정답"); + break; + } + } + scanner.close(); } } - From c864a3ef91b198248c10f84b10da2eb649626230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=80=EC=B1=84?= Date: Wed, 25 Oct 2023 17:26:10 +0900 Subject: [PATCH 23/26] =?UTF-8?q?=EA=B3=BC=EC=A0=9C:=201=EC=9D=BC=EC=B0=A8?= =?UTF-8?q?=20=EC=A0=9C=EC=B6=9C/=EA=B9=80=EC=9D=80=EC=B1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/eunchae/Case1.java | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/src/eunchae/Case1.java b/src/src/eunchae/Case1.java index ce57043..64309eb 100644 --- a/src/src/eunchae/Case1.java +++ b/src/src/eunchae/Case1.java @@ -1,4 +1,25 @@ package eunchae; +import java.util.Scanner; + public class Case1 { -} + public static void gameStart(int randomNum) { + System.out.print("숫자 입력: "); + Scanner scanner = new Scanner(System.in); + + Integer userInput = Integer.parseInt(scanner.next()); + + if (randomNum < userInput) { + System.out.println("DOWN"); + gameStart(randomNum); + + } else if (randomNum > userInput) { + System.out.println("UP"); + gameStart(randomNum); + + } else { + System.out.println("GOOD"); + } + + } + } From 00c2ae60d851b1caed6ac1c53dc1f49a6516c01b Mon Sep 17 00:00:00 2001 From: kdy9960 <146910663+kdy9960@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:04:28 +0900 Subject: [PATCH 24/26] =?UTF-8?q?=EB=A6=AC=ED=80=98=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=9E=85=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/daeyoung/Main.java | 10 ++++++++++ src/daeyoung/src/Main.java | 12 ++++++++++++ src/daeyoung/src/base/Case1.java | 29 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 src/daeyoung/Main.java create mode 100644 src/daeyoung/src/Main.java create mode 100644 src/daeyoung/src/base/Case1.java diff --git a/src/daeyoung/Main.java b/src/daeyoung/Main.java new file mode 100644 index 0000000..9983b50 --- /dev/null +++ b/src/daeyoung/Main.java @@ -0,0 +1,10 @@ +import base.Case1; + +public class Main { + public static void main(String[] args) { + Case1 case1 = new Case1(); + + case1.gameStart(3); + + } +} \ No newline at end of file diff --git a/src/daeyoung/src/Main.java b/src/daeyoung/src/Main.java new file mode 100644 index 0000000..60c8159 --- /dev/null +++ b/src/daeyoung/src/Main.java @@ -0,0 +1,12 @@ +import base.Case1; + +// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`, +// then press Enter. You can now see whitespace characters in your code. +public class Main { + public static void main(String[] args) { + Case1 main = new Case1(); + main.gameStart(6); + + + } +} \ No newline at end of file diff --git a/src/daeyoung/src/base/Case1.java b/src/daeyoung/src/base/Case1.java new file mode 100644 index 0000000..cd463b7 --- /dev/null +++ b/src/daeyoung/src/base/Case1.java @@ -0,0 +1,29 @@ +package base; + +import java.util.Scanner; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); + + + + for ( ;; ){ + Integer userInput = Integer.parseInt(scanner.nextLine()); + + if(randomNum < userInput) { + System.out.println("DOWN"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("GOOD"); + break; + } + } + } + + +} + + From 788536b07e245c80a4be3b47d95f61a081d53839 Mon Sep 17 00:00:00 2001 From: BMDK9 Date: Thu, 26 Oct 2023 14:25:26 +0900 Subject: [PATCH 25/26] =?UTF-8?q?=EC=BB=A4=EB=B0=8B=EC=9E=85=EB=8B=88?= =?UTF-8?q?=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/SungHun/Case1.java | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/src/SungHun/Case1.java b/src/src/SungHun/Case1.java index 50a063b..7012273 100644 --- a/src/src/SungHun/Case1.java +++ b/src/src/SungHun/Case1.java @@ -1,12 +1,25 @@ package SungHun; -public class Case1 { - public void gameStart(int randomNum){ - //여기에 작성해 주세요 +import java.util.Scanner; - } +public class Case1 { + public void gameStart(int randomNum) { + Scanner sc = new Scanner(System.in); + String string = "아직 못 맞춤"; + while (string.equals("아직 못 맞춤")) { + Integer userInput = Integer.parseInt(sc.nextLine()); + if (randomNum < userInput) { + System.out.println("Down"); + } else if (randomNum > userInput) { + System.out.println("UP"); + } else { + System.out.println("Good"); + string = "이제 맞춤"; + } + } + } } From f1b3d44252cf8fc75ee05782e01b95f4110c6226 Mon Sep 17 00:00:00 2001 From: jimyung0418 Date: Fri, 27 Oct 2023 11:38:50 +0900 Subject: [PATCH 26/26] =?UTF-8?q?=EC=A7=80=EB=AA=85=20=EA=B3=BC=EC=A0=9C?= =?UTF-8?q?=20=EC=A0=9C=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/src/jimyung/Case1.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/src/jimyung/Case1.java diff --git a/src/src/jimyung/Case1.java b/src/src/jimyung/Case1.java new file mode 100644 index 0000000..fa7de1d --- /dev/null +++ b/src/src/jimyung/Case1.java @@ -0,0 +1,23 @@ +package jimyung; + +import java.util.Scanner; + +public class Case1 { + public void gameStart(int randomNum) { + //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); + + while (true) { + Integer userInput = Integer.parseInt(scanner.nextLine()); + + if (randomNum < userInput) { + System.out.println("Down"); + } else if (randomNum > userInput) { + System.out.println("Up"); + } else { + System.out.println("Good"); + break; + } + } + } +} \ No newline at end of file