fix: Add toString method to Movie class
This commit is contained in:
@@ -81,4 +81,9 @@ public class Movie {
|
|||||||
public void setCountry(String country) {
|
public void setCountry(String country) {
|
||||||
this.country = country;
|
this.country = country;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return id + ". " + title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user