complete tasks

This commit is contained in:
2026-05-01 01:35:31 +03:30
parent 6a01e43eb2
commit ce9f9c2a3a
4 changed files with 135 additions and 10 deletions
+9 -2
View File
@@ -23,14 +23,21 @@ public class Main {
case 2:
// TODO: Get genre ID and page from user, then call movieService.displayMoviesByGenre()
break;
Long genreId = getLongInput("Enter genre ID: ");
Long page = getLongInput("Enter page number: ");
movieService.displayMoviesByGenre(genreId, page);
break;
case 3:
// TODO (BONUS): Get movie ID from user, then call movieService.displayMovieDetails()
Long movieId = getLongInput("Enter movie ID: ");
movieService.displayMovieDetails(movieId);
break;
break;
case 0:
running = false;