標題:
TQC+ 107 運動成績
[打印本頁]
作者:
周政輝
時間:
2016-12-17 11:40
標題:
TQC+ 107 運動成績
[attach]1828[/attach]
public class JPD01 {
public static void main(String argv[]) {
int action = 1, skill = 2, teamgame = 3;
System.out.println("The basketball grade is " + Basketball.calGrade(action,skill,teamgame));
System.out.println("The baseball grade is " +Baseball.calGrade(skill, teamgame));
}
}
class Basketball {
public static int calGrade(int a,int s,int t) {
return a + s + t;
}
}
class Baseball {
public static int calGrade(int s,int t) {
return 10 + s + t;
}
}
複製代碼
作者:
張健勳
時間:
2016-12-17 11:49
public class JPA01 {
public static void main(String argv[]) {
int action = 1, skill = 2, teamgame = 3;
System.out.println("The basketball grade is " + Basketball.calGrade(action,skill,teamgame));
System.out.println("The baseball grade is " + Baseball.calGrade(skill,teamgame));
}
}
class Basketball {
public static int calGrade(int a ,int s ,int t) {
return a + s + t;
}
}
class Baseball {
public static int calGrade(int s, int t) {
return 10 + s + t;
}
}
複製代碼
作者:
王彥甯
時間:
2016-12-17 11:51
public class JPA01 {
public static void main(String argv[]) {
int action = 1, skill = 2, teamgame = 3;
System.out.println("The basketball grade is " + Basketball.calGrade(action,skill,teamgame));
System.out.println("The baseball grade is " + Baseball.calGrade(skill , teamgame));
}
}
class Basketball {
public static int calGrade(int a , int s , int t){
return a + s + t;
}
}
class Baseball {
public static int calGrade(int s,int t){
return 10 + s + t;
}
}
複製代碼
作者:
蔡庭豪
時間:
2016-12-20 17:21
public class JPA01 {
public static void main(String argv[]) {
int action = 1, skill = 2, teamgame = 3;
System.out.println("The basketball grade is " + Basketball.calGrade(action,skill,teamgame));
System.out.println("The baseball grade is " + Baseball.calGrade(skill,teamgame));
}
}
class Basketball {
public static int calGrade(int a ,int s,int t) {
return a + s + t;
}
}
class Baseball {
public static int calGrade( int s,int t) {
return 10 + s + t;
}
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/)
Powered by Discuz! 7.2