From 68bd7727326e9b7bf4ca650210c6d64b29f5b30e Mon Sep 17 00:00:00 2001 From: yeonwooPark Date: Wed, 25 Oct 2023 14:39:30 +0900 Subject: [PATCH 1/5] push --- src/Main | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/Main diff --git a/src/Main b/src/Main new file mode 100644 index 0000000..e69de29 From ccda56881261c4c8d1016dac0337a2c6e1337aef Mon Sep 17 00:00:00 2001 From: yeonwooPark Date: Wed, 25 Oct 2023 14:39:36 +0900 Subject: [PATCH 2/5] push --- .idea/misc.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 639900d..6e86672 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - From 309177c79d543cd9dc6dd01f6b31d8be8d29be79 Mon Sep 17 00:00:00 2001 From: yeonwooPark Date: Wed, 25 Oct 2023 14:46:05 +0900 Subject: [PATCH 3/5] push --- src/src/yeonwoo/Case1.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/src/yeonwoo/Case1.java diff --git a/src/src/yeonwoo/Case1.java b/src/src/yeonwoo/Case1.java new file mode 100644 index 0000000..8643590 --- /dev/null +++ b/src/src/yeonwoo/Case1.java @@ -0,0 +1,12 @@ +package yeonwoo; + +public class Case1 { + public void gameStart(int randomNum){ + //여기에 작성해 주세요 + + } + + +} + + From c384df837ee168c461009aa98ba4e08d7988de14 Mon Sep 17 00:00:00 2001 From: yeonwooPark Date: Wed, 25 Oct 2023 14:46:10 +0900 Subject: [PATCH 4/5] push --- src/src/.idea/.gitignore | 3 +++ src/src/.idea/misc.xml | 6 ++++++ src/src/.idea/modules.xml | 8 ++++++++ src/src/.idea/vcs.xml | 6 ++++++ .../production/spartaSpringBasic/.idea/.gitignore | 3 +++ .../production/spartaSpringBasic/.idea/misc.xml | 6 ++++++ .../spartaSpringBasic/.idea/modules.xml | 8 ++++++++ .../production/spartaSpringBasic/.idea/vcs.xml | 6 ++++++ .../out/production/spartaSpringBasic/Main.class | Bin 0 -> 459 bytes .../production/spartaSpringBasic/base/Case1.class | Bin 0 -> 352 bytes .../spartaSpringBasic/spartaSpringBasic.iml | 11 +++++++++++ src/src/spartaSpringBasic.iml | 11 +++++++++++ 12 files changed, 68 insertions(+) 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/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..26d3352 --- /dev/null +++ b/src/src/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.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/out/production/spartaSpringBasic/.idea/.gitignore b/src/src/out/production/spartaSpringBasic/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/src/src/out/production/spartaSpringBasic/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.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/Main.class b/src/src/out/production/spartaSpringBasic/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..03adf502d69dfc007ad2f623e10ec4647fa2d727 GIT binary patch literal 459 zcmZvY%}&BV6ot=FXlX4!g5v+e9bjVP8g)ZrqN%#TkQi6fI;lgTB&GOXZY0sf2k@bc zXTXGwvp9F|y>q^MGv7ZSUjQy}n|LD5GEwm^L(Uu7_sX%gH=BNgWY_PI`VekowJ zJ3|L$0WXp>74#`*9voOkHhlP~2)K!ys6j3>I*aXV*dMx2Ge;Kt1E4`aLu4o!^SbH{1|fzpcyu`&MaUQjHT`Z;%(X9q?$Hhp+WUm z575LGGZ))vv0}_Ogc)e{6VBrTZg^t9!&_6TBoK`<|Fc4;p|w^H>|mE!nUnUgPoBU5 I^8yZk0f{M4p#T5? 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..e3c37f88d191e3522b77fc762842740505b28ea5 GIT binary patch literal 352 zcmZWkyH3ME5S)#jm>5ICL-ceB1r`MrfhJOr+T&?1lY;E#}(3{xGHctd^G)@B? z5yFf&CY}o15&UVrG=xE7EAzZ9Gvi)4E2MLt)HxR^JF9%(^qV)kAw + + + + + + + + + + \ 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 29fed0bd39249891fb780da7e90110bd1460215b Mon Sep 17 00:00:00 2001 From: yeonwooPark Date: Thu, 26 Oct 2023 15:12:49 +0900 Subject: [PATCH 5/5] push --- src/src/yeonwoo/Case1.java | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/src/yeonwoo/Case1.java b/src/src/yeonwoo/Case1.java index 8643590..4d42fa6 100644 --- a/src/src/yeonwoo/Case1.java +++ b/src/src/yeonwoo/Case1.java @@ -1,12 +1,35 @@ package yeonwoo; +import java.util.Scanner; + + public class Case1 { - public void gameStart(int randomNum){ + + public void gameStart(int randomNum) { //여기에 작성해 주세요 + Scanner scanner = new Scanner(System.in); - } + String string = "아직 못맞춤"; + + int a = 0; + for (; a < 10; a++) { + 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 = "이제 맞춤"; + break; + } + + } + + + } }