Created
April 25, 2011 15:50
-
-
Save sharrissf/940704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Collection getAllAlbumsBy(Artist artist){ | |
List results = new ArrayList(); | |
for(Iterator i = getAllAlbums();i.hasNext();){ | |
Album album = (Album)i.next(); | |
if(album.isBy(artist)){ | |
results.add(album); | |
} | |
} | |
return results; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment