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 Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s