Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Book {
- private String title;
- private String author;
- private int publicationYear;
- private double averageRating;
- private int ratingsCount;
- private String imageUrl;
- // Add getters & setters for author, averageRating, and ratingsCount
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public int getPublicationYear() {
- return publicationYear;
- }
- public void setPublicationYear(int publicationYear) {
- this.publicationYear = publicationYear;
- }
- public String getImageUrl() {
- return imageUrl;
- }
- public void setImageUrl(String imageUrl) {
- this.imageUrl = imageUrl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement