Skip to content

Instantly share code, notes, and snippets.

@wannabecoding
Created May 24, 2017 04:03
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 wannabecoding/b95538b05b6f33d020b649250dbc8e6a to your computer and use it in GitHub Desktop.
Save wannabecoding/b95538b05b6f33d020b649250dbc8e6a to your computer and use it in GitHub Desktop.
NHLStatistics Part 1
import nhlstats.NHLStatistics;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
System.out.println("Top ten by goals");
NHLStatistics.sortByGoals();
NHLStatistics.top(10);
System.out.println();
System.out.println("Top twenty five by penalties");
NHLStatistics.sortByPenalties();
NHLStatistics.top(25);
System.out.println();
System.out.println("Statistics for Sidney Crosby");
NHLStatistics.searchByPlayer("Sidney Crosby");
System.out.println();
System.out.println("Statistics for the Philadelphia Flyers");
NHLStatistics.teamStatistics("PHI");
System.out.println();
System.out.println("Statistics for the Anaheim Ducks sorted by points");
NHLStatistics.sortByPoints();
NHLStatistics.teamStatistics("ANA");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment