Write a Java application that lists your top five favorite m

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 \\t 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.com

Solution

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 \\t 2001 \\t 3:44\");
       System.out.println(\"2. Dangal \\t 2016 \\t 2:41\");
       System.out.println(\"3. Sultan \\t 2016 \\t 2:50\");
       System.out.println(\"4. Fan \\t 2016 \\t 2:22\");
       System.out.println(\"5. Raees \\t 2017 \\t 2:23\");
   }
}

 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 fo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site