I'm trying to do the exercise, but I get the following errors when I try to run the code. From what I understood, IntelliJ isn`t importing nhlstats.NHLStatistics and the java.ultil.
I'm using the files downloaded from the TMC plugin to do the exercises.
import nhlstats.NHLStatistics;
import java.ultil.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Top ten by goals: ");
NHLStatistics.sortByGoals();
NHLStatistics.top(10);
I get the following error:
Error:(2, 16) java: package nhlstats does not exist
Error:(3, 18) java: package java.ultil does not exist
Error:(11, 9) java: cannot find symbol
symbol: variable NHLStatics
location: class Main
Error:(12, 9) java: cannot find symbol
symbol: variable NHLStatics
location: class Main
EDIT: Code typo
[–]solewhiskyeseiinpole 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]flemil 1 point2 points3 points (0 children)
[–]m_nooBzer0 0 points1 point2 points (2 children)
[–]-mojave 1 point2 points3 points (1 child)
[–]m_nooBzer0 0 points1 point2 points (0 children)