Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siwon #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

405 changes: 405 additions & 0 deletions src/.idea/dbnavigator.xml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/out/production/spartaSpringBasic/Main.class
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions src/spartaSpringBasic.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
1 change: 1 addition & 0 deletions src/src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class Main {
public static void main(String[] args) {
Case1 case1 = new Case1();
System.out.printf("hi");

case1.gameStart(3);

Expand Down
35 changes: 35 additions & 0 deletions src/src/siwon/Case1.java
Original file line number Diff line number Diff line change
@@ -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);
}


}