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

Please help, Write a program to find the area under the curve y = f(x) betw...

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

How dos attack is a cyber crime what cyber crime can be used, How DoS attac...

How DoS attack is a cyber crime? For what cyber crime can be used? DoS stands for Decline of Service and it is a cyber crime as it jams and within a few cases shut down the goa

Difference between bean factory and application context, On the surface, an...

On the surface, an application context is similar as a bean factory. But application context offers much more.. ? Application contexts give a means for resolving text messages,

Tokenize a algebraic expr and sorted, ? • ?read from a file a series of an ...

? • ?read from a file a series of an infix algebraic expressions comprised of constant and variable operands (integers), operands (%, *, /, +, -) and parenthesis. Two slashes (//)

What is constructors and explain with an example, What is Constructors? Exp...

What is Constructors? Explain with an example? A constructor forms a new instance of the class. It initializes all the variables and does any work essential to prepare the clas

Describe the ? operator in java langauge, Describe The ? operator in Java l...

Describe The ? operator in Java langauge? The conditional operator just works for assigning a value to a variable, using a value within a method invocation, or in a few other w

Object-based programming, JavaScript is an extremely powerful object-based ...

JavaScript is an extremely powerful object-based (or prototype-based) language. It is not a full-blown OOP (Object-Oriented Programming) language, like Java, however it is an objec

Where the local varible declared, Where the local varible declared? Dec...

Where the local varible declared? Declaring variables within a function, makes them local .They are available only within that function and hold no meaning outside of it

Determine the phase loading- java program development, Determine the phase ...

Determine the phase Loading- Java Program Development In phase 3, the program must first be placed in memory before it can be executed. This is done by the class loader, whic

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