Implement HW-03

This commit is contained in:
2026-04-30 16:35:02 +04:30
parent 5473658dc8
commit e7f15e07bf
4 changed files with 173 additions and 42 deletions
+9 -5
View File
@@ -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: