Created
February 17, 2015 23:57
-
-
Save ragmha/e0ebff7500e43eba66c1 to your computer and use it in GitHub Desktop.
Ex13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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