교수님 다른건 되는데
실행클래스에서 에러 3개 나요_!
아무리 찾아봐도 뭔지 모르겠어요ㅡㅡ
실행클래스에서 에러 3개 나요_!
아무리 찾아봐도 뭔지 모르겠어요ㅡㅡ
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 101 |
[re] p/t...
|
yoon | 2006.03.12 | 8,165 |
| 100 | [re] 강의자료 올려주실때.. | yoon | 2006.03.15 | 8,191 |
| 99 | [re] 교수님 | yoon | 2007.11.15 | 7,924 |
| 98 | [re] 교수님 ... | yoon | 2007.12.08 | 18,269 |
| 97 | [re] 교수님 ~! | yoon | 2006.06.30 | 5,705 |
| 96 |
[re] 교수님 ㅠ
|
yoon | 2007.12.02 | 22,619 |
| 95 | [re] 교수님 리눅스 질문이요 | yoon | 2006.07.19 | 6,044 |
| 94 | [re] 교수님 부탁있는데용~ㅠㅠ | yoon | 2006.03.29 | 10,416 |
| 93 | [re] 교수님 부탁좀 ,ㅠㅠ | yoon | 2006.11.04 | 6,273 |
| 92 | [re] 교수님 중간고사 시험 답안이 비밀글로 되있던데요.. | yoon | 2006.06.20 | 5,925 |
| 91 | [re] 교수님 질문이요. | yoon | 2007.12.16 | 18,430 |
| 90 | [re] 교수님 질문이요..ㅠ_ㅠ | yoon | 2006.07.27 | 6,155 |
| 89 | [re] 교수님,, 기말프로젝트 관련해서,, | yoon | 2007.12.16 | 3 |
| 88 | [re] 교수님!! | yoon | 2006.06.30 | 5,985 |
| 87 | [re] 교수님.. | yoon | 2007.12.08 | 17,427 |
| 86 | [re] 교수님.. | yoon | 2007.11.11 | 8,031 |
| 85 | [re] 교수님~ | yoon | 2006.03.22 | 6,063 |
| 84 | [re] 교수님~ | yoon | 2006.06.19 | 5,826 |
| 83 | [re] 교수님~ | yoon | 2006.06.30 | 5,665 |
| 82 | [re] 교수님~! 궁금사항 | yoon | 2007.12.08 | 17,544 |
GuGuLab.java
class GuGuLab extends GuGu {
public static void main(String[] args){
GuGuDan gu;
if (args.length==1) {
int dan=Integer.parseInt(args[0]);
gu= new GuGu(dan);
gu.printPart();
} else if (args.length==2)
{
int dan=Integer.parseInt(args[0]);
int num=Integer.parseInt(args[1]);
gu= new GuGu(dan, num);
gu.printPart();
} else
{
gu= new GuGu();
gu.printAll();
}
}
}
GuGu.java
class GuGu extends Multiplication {
GuGu(){}
GuGu(int dan){
super(dan);
}
GuGu(int dan, int number){
super(dan,number);
}
void printPart() {
if (number == 0) {
System.out.println(dan+"단 : ");
for(int n=1; n <= 9; n++){
System.out.print(dan+ "X" +n+ "=" + (dan*n)+"t");
System.out.println();
}
}
else {
System.out.println(dan + "X" +number+ "=" +(dan*number));
}
}
void printAll(){
for(int i=1; i<=9; i++){
for(int j=1; j<=9; j++){
System.out.println(i + "X" +j+ "=" +(i*j));
}
System.out.println();
}
}
}
틀린 부분을 한번 잘 찾아보세요 ^^;