Java Introduction to Functional Programming Meet Streams Collecting 3 NES Scores

Claudio Rodrigues
Claudio Rodrigues
3,636 Points

All my tests are passing through in InteliJ but for some reason it always fails when I upload...

I have created the required logic and all my tests work well in Java... when I upload it just fails repeatedly ... Can someone help ?

private static boolean isNintendo (Score score) { String Platforms = score.getPlatform(); return Platforms.contains("Nintendo Entertainment System"); }

public static List<Score> getFirstThreeNintendoScoresDeclaratively(List<Score> scores) { return .filter(Main::isNintendo) .limit(3) .collect(Collectors.toList());