# 당신의 연봉은?
#### CODE <a class='btn btn-default' href='/codes/18639'>Link</a>
```
public class Main {
public static void main(String[] args) {
// 객체 생성
Developer tom = new Developer("Tom", Integer.parseInt(args[0]));
Developer john = new Developer("John", Integer.parseInt(args[1]));
Developer sally = new Developer("Sally", Integer.parseInt(args[2]));
// 연봉 출력
System.out.println(tom.salary());
System.out.println(john.salary());
System.out.println(sally.salary());
}
}
class Developer {
/* 1. 필드를 구현 하시오. */
String name;
int career;
/* 2. 생성자를 구현하시오. */
public Developer(String name, int career){
this.name = name;
this.career = career;
}
/* 3. 메소드를 구현하시오. */
private int level(){
int level;
if(career >= 7){
level = 3;
} else if (career < 7 && career >= 3){
level = 2;
} else {
level = 1;
}
return level;
}
public int salary(){
int salary;
if(this.level() == 3){
salary = 4500 + career * 100;
} else if (this.level() == 2){
salary = 3500 + career * 100;
} else if (this.level() == 1){
salary = 2800 + career * 100;
} else {
salary = 0;
}
return salary;
}
}
```
#### INPUT
```
2 5 9
```
#### OUPUT
```
3000
4000
5400
```
sehongpark님의 답변
# 옛날에 만들어 정답 적용이 안되었네요
수정하였습니다! :D