To practice working with ArrayLists, we’re going to create a simple movie DB.
Rx: <15 min Av: 15-30 min Sd: 30-45 min DNF: 45+ min
uLogin
MovieDB
class that:
ArrayList
, and initializes the list to be empty.addMovie
that adds a movie to the ArrayList
.print
method that prints the entire movie list using a for each loop.getOldestMovie
method that returns the Movie
object with the oldest year.main
method that adds 3 movies to the MovieDB
, and prints them out by calling the print
method.Export > General > Archive File
. Name the file MovieDB_uLogin.zip
.