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

Explain parentheses in java, Explain Parentheses in Java ? Sometimes th...

Explain Parentheses in Java ? Sometimes the default sequence of evaluation isn't what you want. For example, the formula to change a Fahrenheit temperature to a Celsius tempera

A new dynamic website, A NEW Dynamic Website I have the subsequent requi...

A NEW Dynamic Website I have the subsequent requirement which needs to be designed in 30 days (Max). 1) Construct a website which is a dynamic, means allow me to change conte

Define enumeration, Define enumeration? Enumeration is explained as val...

Define enumeration? Enumeration is explained as values type that having of a set of named values. These values are constants and are called enumerators. An enumeration type is

Eclipse javaj, how to write coding for money and currency

how to write coding for money and currency

Describe synchronization in respect to multithreading, Describe synchroniza...

Describe synchronization in respect to multithreading. With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared res

Program with eclipse and enumeration , Problem Definition A new Met Of...

Problem Definition A new Met Office web application will allow users of their web site to view rainfall statistics for months and years in the UK. The application allows the m

Need facebook developer, Project Description: i am seeking an experience...

Project Description: i am seeking an experienced Facebook page builder,fanpage builder, Header module Navigation menu module HTML module Widget module Image modul

State the significance of public and private modifiers, State the significa...

State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by

Write a javascript program which having two functions, Write a JavaScript p...

Write a JavaScript program which having two functions that are sum and mean. The web page will ask the user to enter five values to be added. After taking input it will compute

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