-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
27 lines (18 loc) · 781 Bytes
/
test.java
File metadata and controls
27 lines (18 loc) · 781 Bytes
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
import java.util.ArrayList;
import java.util.List;
import java.util.PriorityQueue;
import java.util.TreeMap;
public class test {
public static void main(String[] args){
UserMovieRating aaa=new UserMovieRating("movie1",5);
UserMovieRating bbb=new UserMovieRating("movie1",8);
UserMovieRating ccc=new UserMovieRating("movie2",6);
List<UserMovieRating> rattings=new ArrayList<UserMovieRating>();
rattings.add(aaa);
rattings.add(bbb);
rattings.add(ccc);
TreeMap<String, PriorityQueue<Integer>> map1=MovieRatingsParser.parseMovieRatings(rattings);
List<String> names= new ArrayList<String>();
names= MovieRatingsProcessor.getAlphabeticalMovies(map1);
}
}