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

complete #9

Open
wants to merge 3 commits into
base: main
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
6 changes: 6 additions & 0 deletions .idea/encodings.xml

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

3 changes: 2 additions & 1 deletion .idea/gradle.xml

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

1 change: 0 additions & 1 deletion .idea/vcs.xml

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

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ public class Application01 {
public static void main(String[] args){
// 즐거운 자바를 화면에 출력해주세요
// 출력예시) 즐거운 자바
System.out.print("즐거운 자바");


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public class Application01 {
public static void main(String[] args){
// point 변수에 10의 값을 할당하고 화면에 출력해주세요
// 출력 예시) 10
System.out.println(10);
int point = 10;
System.out.println(point);
}
}
8 changes: 8 additions & 0 deletions src/main/java/com/ohgiraffers/chap02/.idea/.gitignore

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

6 changes: 6 additions & 0 deletions src/main/java/com/ohgiraffers/chap02/.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/main/java/com/ohgiraffers/chap02/.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/main/java/com/ohgiraffers/chap02/.idea/vcs.xml

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

Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
public class Application01 {

// x, y를 더하는 기능을 만들고 결과를 반환해주세요
public int plus (int x , int y){
return 0;
public int plus (int x , int y)
{
return x+y;
}

// x,y를 빼는 기능을 만들고 결과를 반환해주세요
public int minus(int x, int y){

return 0;
public int minus(int x, int y)
{
return x-y;
}

// x,y를 곱하는 기능을 만들고 결과를 반환해주세요
public long multiply(int x, int y){

return 0;
public long multiply(int x, int y)
{
return x*y;
}
// x, y를 나누고 결과를 반환해주세요

public double divide(int x, int y){

return 0.0;
public double divide(int x, int y)
{
return (double)x/y;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
public class Application01 {

// 두 수의 값을 비교하여 같으면 true 다르면 false를 출력하는 프로그램을 작성해주세요
public boolean valueCheck(int x, int y){
public boolean valueCheck(int x, int y)
{

return true;
return x==y;
}

// 두 수의 값을 비교하여 큰 값을 반환하는 프로그램을 작성해주세요
// 만약 같다면 0의 값을 반환합니다.
public int maxNumberOf(int x, int y){
return 0;
public int maxNumberOf(int x, int y)
{
int result = (x>y)? x :(x<y)? y :0 ;
return result;
}

// int x의 값이 0 ~ 100 사이의 값이 맞다면 true 아니면 false를 출력하는 프로그램을 만들어주세요
public boolean rangeNum(int x){
return false;
public boolean rangeNum(int x)
{
return (x>=0)&&(x<100);
}
}
}