Merge pull request #7973 from Thabo08/java-file-class-demo

java-file-class demo code
This commit is contained in:
Erik Pragt
2019-10-08 08:24:26 +11:00
committed by GitHub
parent db85c8f275
commit 43e39881a5
20348 changed files with 1637651 additions and 0 deletions
@@ -0,0 +1,42 @@
package com.baeldung.model;
public class Book {
private int id;
private String author;
private String title;
public Book() {
}
public Book(int id, String author, String title) {
this.id = id;
this.author = author;
this.title = title;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}