Write a Java application that lists your top five favorite movies. Each movie sh
ID: 3786429 • Letter: W
Question
Write a Java application that lists your top five favorite movies. Each movie should also include its year of release and its running time in hours: minutes format. Use the escape sequence for tabs to line up the movie titles, years, and running times. For example, your program's output might look something like this: The Best Movies Ever, According to Me Monty Python and the Holy Grail 1975 1:31 The Count of Monte Cristo 2002 2:11 Office Space 1999 1:29 Forrest Gump 1994 2:22 Terminator 2: Judgment Day 1991 2:17 If you don't know the years and running times by heart (which I truly hope you don't...), you can look up detailed movie information online through the Internet Movie Database at www.imdb.comExplanation / Answer
import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
System.out.println("The Best Movies Ever, According to Me ");
System.out.println("1. Lagaan 2001 3:44");
System.out.println("2. Dangal 2016 2:41");
System.out.println("3. Sultan 2016 2:50");
System.out.println("4. Fan 2016 2:22");
System.out.println("5. Raees 2017 2:23");
}
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.