Created
May 24, 2017 04:03
-
-
Save wannabecoding/b95538b05b6f33d020b649250dbc8e6a to your computer and use it in GitHub Desktop.
NHLStatistics Part 1
This file contains hidden or 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
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