Implement HW-03
This commit is contained in:
@@ -21,15 +21,19 @@ public class Main {
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// TODO: Get genre ID and page from user, then call movieService.displayMoviesByGenre()
|
||||
|
||||
// TODO: Get genre ID and page from user, then call movieService.displayMoviesByGenre() .
|
||||
System.out.println("Enter genre ID and page: ");
|
||||
Long genre_id = scanner.nextLong();
|
||||
Long page = scanner.nextLong();
|
||||
movieService.displayMoviesByGenre(genre_id, page);
|
||||
break;
|
||||
|
||||
|
||||
case 3:
|
||||
// TODO (BONUS): Get movie ID from user, then call movieService.displayMovieDetails()
|
||||
|
||||
|
||||
// TODO (BONUS): Get movie ID from user, then call movieService.displayMovieDetails() .
|
||||
System.out.println("Enter movie ID: ");
|
||||
Long movie_id = scanner.nextLong();
|
||||
movieService.displayMovieDetails(movie_id);
|
||||
break;
|
||||
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user