Skip to content

Instantly share code, notes, and snippets.

@ragmha
Created February 17, 2015 23:57
Show Gist options
  • Save ragmha/e0ebff7500e43eba66c1 to your computer and use it in GitHub Desktop.
Save ragmha/e0ebff7500e43eba66c1 to your computer and use it in GitHub Desktop.
Ex13
Scanner reader = new Scanner(System.in);
System.out.println("Top ten players based on goals");
NHLStatistics.sortByGoals();
NHLStatistics.top(10);
System.out.print("\n");
System.out.println("Top 25 players based on penalty amounts");
NHLStatistics.sortByPenalties();
NHLStatistics.top(25);
System.out.print("\n");
System.out.println("Statistics of Sidney Crosby");
NHLStatistics.searchByPlayer("Sidney Crosby");
System.out.print("\n");
System.out.println("Statiscts of Philadelphia Flyers ");
NHLStatistics.teamStatistics("PHI");
System.out.print("\n");
System.out.println("Players in Anaheim Ducks");
NHLStatistics.teamStatistics("ANA");
NHLStatistics.sortByAssists();
NHLStatistics.sortByPoints();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment