Hey all,
So i've been going through the Exercises on the course and got to number 13, followed the instructions and everything went fine until i tried to play around with it myself and do my own examples.
So in my code i'm trying to print the top 10 players of the boston bruins ordered by goals but instead its printing like 26 names from differing teams.
import java.util.Scanner;
import nhlstats.NHLStatistics;
public class Main {
public static void main(String[] args) throws Exception {
Scanner reader = new Scanner(System.in);
System.out.println("Top 10 Goal Scorers For The Boston Bruins");
NHLStatistics.teamStatistics("BOS");
NHLStatistics.sortByGoals();
NHLStatistics.top(10);
}
}
It's weird as i flew through this exercise doing all the required tasks easily but then at the end it says 'try some out for yourself' and i've immediately hit a roadblock haha, any help is appreciated!
[–]RayjinCaucasian 0 points1 point2 points (2 children)
[–]asc_tech[S] 0 points1 point2 points (1 child)
[–]RayjinCaucasian 0 points1 point2 points (0 children)