Rich Newman

SimpleMovieFinder Class – Java

package moviefindertest.springxml;

import java.util.ArrayList;
import java.util.List;

public class SimpleMovieFinder implements MovieFinder {

      public List<Movie> findAll() {
            List<Movie> movieList = new ArrayList<Movie>();
            movieList.add(new Movie("Star Wars", "George Lucas"));
            movieList.add(new Movie("American Graffiti", "George Lucas"));
            movieList.add(new Movie("Aliens", "James Cameron"));
            movieList.add(new Movie("Titanic", "James Cameron"));
            movieList.add(new Movie("Avatar", "James Cameron"));
            movieList.add(new Movie("The Abyss", "James Cameron"));
            movieList.add(new Movie("The Terminator", "James Cameron"));
            return movieList;
      }

}
 

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: