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;
}


}
public class NewPrintClass {
public static void newPrintClass(String name, int score) {
System.out.println( name + " " + score);
}

}
C:\Users\netadmin\.jdks\openjdk-23.0.1\bin\java.exe "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.2.4\lib\idea_rt.jar=61287:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2024.2.4\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\netadmin\IdeaProjects\MethodsInJava\out\production\MethodsInJava Main

Name Score
Bob 100
Chris 200
James 300

Name Score
Bob 100
Chris 200
James 300
Highest Score: 300

Process finished with exit code 0