diff --git a/src/.idea/.gitignore b/src/.idea/.gitignore new file mode 100644 index 0000000..23baf58 --- /dev/null +++ b/src/.idea/.gitignore @@ -0,0 +1,3 @@ +# 디폴트 무시된 파일 +/shelf/ +/workspace.xml diff --git a/src/.idea/dbnavigator.xml b/src/.idea/dbnavigator.xml new file mode 100644 index 0000000..2f23ff3 --- /dev/null +++ b/src/.idea/dbnavigator.xml @@ -0,0 +1,405 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/.idea/misc.xml b/src/.idea/misc.xml new file mode 100644 index 0000000..07115cd --- /dev/null +++ b/src/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/.idea/modules.xml b/src/.idea/modules.xml new file mode 100644 index 0000000..209385b --- /dev/null +++ b/src/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/.idea/vcs.xml b/src/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/src/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/out/production/spartaSpringBasic/Main.class b/src/out/production/spartaSpringBasic/Main.class new file mode 100644 index 0000000..405fc32 Binary files /dev/null and b/src/out/production/spartaSpringBasic/Main.class differ diff --git a/src/out/production/spartaSpringBasic/base/Case1.class b/src/out/production/spartaSpringBasic/base/Case1.class new file mode 100644 index 0000000..e3c37f8 Binary files /dev/null and b/src/out/production/spartaSpringBasic/base/Case1.class differ diff --git a/src/spartaSpringBasic.iml b/src/spartaSpringBasic.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/src/spartaSpringBasic.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/src/Main.java b/src/src/Main.java index 9983b50..c333827 100644 --- a/src/src/Main.java +++ b/src/src/Main.java @@ -3,6 +3,7 @@ public class Main { public static void main(String[] args) { Case1 case1 = new Case1(); + System.out.printf("hi"); case1.gameStart(3); diff --git a/src/src/siwon/Case1.java b/src/src/siwon/Case1.java new file mode 100644 index 0000000..812dd3b --- /dev/null +++ b/src/src/siwon/Case1.java @@ -0,0 +1,35 @@ +package siwon; + +import java.util.Scanner; +import java.util.SortedMap; + +public class Case1 { + public void gameStart(int randomNum){ + + Scanner scanner = new Scanner(System.in); + String string= "아직 못맞춤"; + + int a=0; + do{ + 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="굿"; + } + + //여기에 작성해 주세요 + + }while (a<0); + } + + +} + +