Skip to content

Instantly share code, notes, and snippets.

@peter279k
Created May 21, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peter279k/5f8d1b040f0b2d9196e850f10ee2a0ea to your computer and use it in GitHub Desktop.
Save peter279k/5f8d1b040f0b2d9196e850f10ee2a0ea to your computer and use it in GitHub Desktop.
TQC+ JAVA
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment