public class Main {
public static void main(String[] args) {
LabelScore();
Score();
// Return highest score from method
int Highest = HighestScore();
System.out.println("Highest Score: " + Highest);
}
public static void Score() {
String name = "Bob ";
int score = 100;
Print_Score(name, score);
name = "Chris";
score = 200;
Print_Score(name, score);
//instead of creating variables, I pass the data directly in the call to the literal method
Print_Score("James", 300);
LabelScore();
name = "Bob ";
score = 100;
NewPrintClass.newPrintClass(name, score);
name = "Chris";
score = 200;
NewPrintClass.newPrintClass(name, score);
/*
instead of creating variables,
I pass the data directly in the call to the literal method
*/
NewPrintClass.newPrintClass("James", 300);
}
public static void LabelScore() {
System.out.println("\nName " + "Score");
}
public static void Print_Score(String name, int score) {
System.out.println(name + " " + score);
}
public static int HighestScore() {
return 300;
}
}