-
Notifications
You must be signed in to change notification settings - Fork 0
/
Populator.java
27 lines (23 loc) · 1.42 KB
/
Populator.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.ArrayList;
import java.util.concurrent.CopyOnWriteArrayList;
public class Populator {
public static CopyOnWriteArrayList<Movie> startinglistMovie(){
CopyOnWriteArrayList<Movie> movieList = new CopyOnWriteArrayList<Movie>();
//Movie movie;
movieList.add(new Movie("The hunt for red october", "Sean Connery", "Action", "1985" ));
movieList.add(new Movie("Terminator", "Arnold Schwarzenegger", "Action", "1984"));
movieList.add(new Movie("Indiana Jones and the Last Crusade", "Harrison Ford", "action", "1989"));
movieList.add(new Movie("Akira", "Katsuhiro Otomo", "Sci-fi/Action", "1988"));
movieList.add(new Movie("Hook", "Robin Williams", "Fantacy", "1991"));
movieList.add(new Movie("Groundhog Day", "Bill Murray", "Comedy/Romance", "1993"));
movieList.add(new Movie("Army of Darkness", "Bruce Campbell", "Horror/Fantasy", "1992"));
movieList.add(new Movie("Buffy the Vampire Slayer", "Kristy Swanson", "Horror/Fantasy", "1992"));
movieList.add(new Movie("Ghost", "Patrick Swayze", "Romance/Fantasy", "1990"));
movieList.add(new Movie("Edward Scissorhands", "Johnny Depp", "Fantasy/Romance", "1990"));
return movieList;
}
public static Movie addMovie(String titleIn, String actorIn, String genreIn, String yearIn){
Movie movie = new Movie(titleIn, actorIn, genreIn, yearIn);
return movie;
}
}