Question: In JAVA please code: Problem 5-Write a program Submit a program called: Movie.java Johan wants to create a program that allows him to type in
Problem 5-Write a program Submit a program called: Movie.java Johan wants to create a program that allows him to type in 3 movies. All movies entered should start with the letter m (case shouldn't matter). If the user enters a movie that does not start with the letter m, the program should let the user know that it does not start with the letter m and reprompt for a movie starting with m. Once all 3 movies are entered, all movies with titles that have an even length less than 5 should be printed to screen (see sample run) 1. Define the following methods: /This method takes the number of movies (given in this problem as 3) and returns a String array filled with the movie information* public static String [] enterMovies(int numOfMovies) /*This method takes the array of movie info and the max length a movie should be in order to print it out (given in this problem as 5)* public static void movieLength(String [ s, int n) 2. Using the methods you created, create the program. Feel free to make any helper methods. Sample Run: ***Enter a movie that starts with m: movie1 ***Enter a movie that starts with m: Not a Movie -That movie doesn't start with m ***Enter a movie that starts with m: Movie2 ***Enter a movie that starts with m: mov3 Movies titles with an even length less than 5: mov3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
