1 Commits
Author SHA1 Message Date
Romina 0a573288ff Movie Explorer + Rational Calculator 2026-05-08 19:00:46 +03:30
2 changed files with 6 additions and 22 deletions
+5 -17
View File
@@ -14,7 +14,7 @@ public class Movie
private String imdb_votes;
private String director;
private List<String> actors;
private String actors;
private String runtime;
private String rated;
private String released;
@@ -136,25 +136,16 @@ public class Movie
this.director = director;
}
public List<String> getActors()
{
return actors;
}
public String getActors() {return actors;}
public void setActors(List<String> actors)
{
this.actors = actors;
}
public void setActors(String actors) {this.actors = actors;}
public String getRuntime()
{
return runtime;
}
public void setRuntime(String runtime)
{
this.runtime = runtime;
}
public void setRuntime(String runtime) {this.runtime = runtime;}
public String getRated()
{
@@ -171,10 +162,7 @@ public class Movie
return released;
}
public void setReleased(String released)
{
this.released = released;
}
public void setReleased(String released) {this.released = released;}
public String getPlot()
{
+1 -5
View File
@@ -176,13 +176,9 @@ public class MovieService
System.out.println("======================================================================");
System.out.println("Rating: " + movie.getImdb_rating() + "/10 | Votes: " + movie.getImdb_votes());
System.out.println("Director: " + movie.getDirector());
String cast = (movie.getActors() != null) ? String.join(", ", movie.getActors()) : "";
System.out.println("Cast: " + cast);
System.out.println("Cast: " + movie.getActors());
String genresText = (movie.getGenres() != null) ? String.join(", ", movie.getGenres()) : "";
System.out.println("Genre: " + genresText);
System.out.println("Runtime: " + movie.getRuntime() + " | Rated: " + movie.getRated());
System.out.println("Country: " + movie.getCountry() + " | Released: " + movie.getReleased());
System.out.println("Plot: " + movie.getPlot());