-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMovieScanner.java
More file actions
39 lines (32 loc) · 1.24 KB
/
MovieScanner.java
File metadata and controls
39 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import java.util.ArrayList;
public class MovieScanner
{
public static ArrayList <Movie> data = new ArrayList <Movie> ();
//what do you need to add to show that there could be an error? CANNOT use try-catch
//reading MUST use Scanner & File (don't forget any imports that are necessary)
//scan data, create a Movie object, store that data into data list (don't need to store everything)
//CANNOT change Movie class
public static void scanData()
{
}
//return title of movie with the shortest title. If there are multiple with the same length, return the LAST
public static String getShortestTitle()
{
return "";
}
//return the number of movies that have this genre listed. REMEMBER the genre category could list multiple genres (like Comedy|Fantasy|Sci-Fi)
public static int genre(String genre)
{
return 0;
}
//calculate the average imbd rating from the year sent in
public static double imbdRating(int year)
{
return 0.0;
}
//return the movie that has the most award wins. If there is multiple movies with the same number of wins return the FIRST from the list in the CSV file
public static String mostAwards()
{
return "";
}
}