Methods, JAVA Programming

Assignment Help:
I need the five methods

public class Ex1Program {
public void start() {

// Step 1. Declare and construct an array of 19 Movie objects (call the array films)


fillMoviesArray(films);
printMoviesArray(films);

Movie mostRecentMovie = getMostRecentMovie(films);
Movie longestMovie = getLongestMovie(films);

printResults(mostRecentMovie, longestMovie);
System.out.println();

printDirector("Searching for Sugar Man", films);
printDirector("Liberal Arts", films);
printDirector("The Intouchables", films);

}

private void fillMoviesArray(Movie[] films) {
films[17] = new Movie("The Intouchables",2011,112,"Olivier Nakache and Eric Toledano");
films[6] = new Movie("From Russia With Love",1963,110,"Terence Young");
films[14] = new Movie("The Long Voyage Home",1940,105,"John Ford");
films[9] = new Movie("Easy Rider",1969,94,"Dennis Hopper");
films[3] = new Movie("Dark Shadows",2012,113,"Tim Burton");
films[10] = new Movie("Walk the Line",2005,136,"James Mangold");
films[5] = new Movie("The Help",2011,137,"Tate Taylor");
films[0] = new Movie("Meet the Parents",2000,107,"Jay Roach");
films[7] = new Movie("The King''s Speech",2011,118,"Tom Hooper");
films[8] = new Movie("Charlie and the Chocolate Factory",2005,115,"Tim Burton");
films[2] = new Movie("Alice In Wonderland",2009,109,"Tim Burton");
films[4] = new Movie("The Iron Lady",2011,105,"Phylliday Lloyd");
films[11] = new Movie("Kaikohe Demolition",2004,52,"Florian Habicht");
films[12] = new Movie("Brokeback Mountain",2005,134,"Ang Lee");
films[13] = new Movie("Gladiator",2000,154,"Ridley Scott");
films[1] = new Movie("The Parent Trap",1961,129,"David Swift");
films[15] = new Movie("Happy-Go-Lucky",2008,118,"Mike Leigh");
films[16] = new Movie("The Big Wedding",2013,89,"Justin Zackham");
films[18] = new Movie("Searching for Sugar Man",2012,86,"Malik Bendjelloul");
}


private void printMoviesArray(Movie[] films) {
System.out.println("Movie Collection");
System.out.println("================");
// Step 2. Complete the printMoviesArray() method

}


private Movie getMostRecentMovie(Movie[] films) {
// Step 3. Complete the getMostRecentMovie() method.

}

private Movie getLongestMovie(Movie[] movies) {
// Step 4. Complete the getLongest() method.

}

private void printResults(Movie mostRecent, Movie longest) {
System.out.println();
System.out.println("The most recent movie is: " + mostRecent.toString());
System.out.println("The longest movie is: " + longest.toString());
}

private void printDirector(String movieName, Movie[] movies) {
// Step 5. Complete the printDirector() method

}

}

Related Discussions:- Methods

JAVA IF/ ELSE, #This assignment will give you practice with interactive pro...

#This assignment will give you practice with interactive programs, if/else statements and methods that return values. You are to write a program that prompts the user for informati

What is mvc, Model-View-Controller (MVC) is a design pattern put together t...

Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. ? Model: The model having the core of

Confidentiality and privacy - security, The confidentiality and privacy may...

The confidentiality and privacy may be accomplished through encryption. Encryption may be: Private-key or symmetric: This is based on a single key. This needs the sender and the

what is meant by binding in rmi, Binding is a method of associating or re...

Binding is a method of associating or registering a name for a remote object that can be used at a later time to look up that remote object. A remote object can be linked with a na

The characteristics of rup? , 1. RUP is relying on a few important principl...

1. RUP is relying on a few important principles and philosophies like planning ahead, knowing where the process is capturing and heading the project in extensible and storable mann

Use of weblogic platform in project, Use of WebLogic Platform in Project: ...

Use of WebLogic Platform in Project: Technologies Tools: Weblogic 8.1, Solaris 9, MQ Series 6.0, iplanet 6.1, Mercury Test Director. Project Overview: Wellington Manag

Loops, Use a while loop to count down from 100 and display all the numbers ...

Use a while loop to count down from 100 and display all the numbers in the * following pattern (you have to figure out what the pattern is - don''t go below 0): * 100 99 97 94

Are constructors inherited, Are constructors inherited ? Can a subclass ca...

Are constructors inherited ? Can a subclass call the parent class constructor and When?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd