@Test public void findsShortAlbums() { List<Album> input = asList(manyTrackAlbum, sampleShortAlbum, aLoveSupreme); List<Album> result = Question1.getAlbumsWithAtMostThreeTracks(input); assertEquals(asList(sampleShortAlbum, aLoveSupreme), result); }
public static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input) { return Exercises.replaceThisWithSolution(); }
Question1 { public static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input) { return Exercises.replaceThisWithSolution(); } }
Question1 { public static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input) { return Exercises.replaceThisWithSolution(); }  }
Question1 { public static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input) { return Exercises.replaceThisWithSolution(); }  static int addUp(Stream<Integer> numbers); static List<String> getNamesAndOrigins(List<Artist> artists); static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input); }
Question1 { public static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input) { return Exercises.replaceThisWithSolution(); }  static int addUp(Stream<Integer> numbers); static List<String> getNamesAndOrigins(List<Artist> artists); static List<Album> getAlbumsWithAtMostThreeTracks(List<Album> input);  }