Skip to content

Instantly share code, notes, and snippets.

@WenhaoWu
Created July 11, 2015 18:02
Show Gist options
  • Save WenhaoWu/c78859315b79a4d83f3f to your computer and use it in GitHub Desktop.
Save WenhaoWu/c78859315b79a4d83f3f to your computer and use it in GitHub Desktop.
import java.util.Scanner;
import nhlstats.NHLStatistics;
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("Top 25 by penalty");
NHLStatistics.sortByPenalties();
NHLStatistics.top(25);
NHLStatistics.searchByPlayer("Slidny Crosby");
NHLStatistics.teamStatistics("PHI");
NHLStatistics.sortByPoints();
NHLStatistics.teamStatistics("ANA");
NHLStatistics.sortByPoints();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment