diff --git a/.idea/misc.xml b/.idea/misc.xml index 639900d..a818314 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/src/Hanshin/Case1.java b/src/src/Hanshin/Case1.java new file mode 100644 index 0000000..84556a3 --- /dev/null +++ b/src/src/Hanshin/Case1.java @@ -0,0 +1,26 @@ +package Hanshin; + +import java.util.Scanner; + +public class Case1 { + public void gameStart(int randomNum) { + //여기에 작성해 주세요 + Scanner sc = new Scanner(System.in); + String string = "아 아직이네"; + + while (string == "아 아직이네") { + 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("올ㅋ어케아셨죠!?"); + string = "팍!짝! 됬으!"; + } + } + } + + +} \ No newline at end of file