Skip to content

Instantly share code, notes, and snippets.

@zijianjoy
Last active June 16, 2020 06:49
Show Gist options
  • Save zijianjoy/bda70d3ec5712ce21f86aadf2cfb7716 to your computer and use it in GitHub Desktop.
Save zijianjoy/bda70d3ec5712ce21f86aadf2cfb7716 to your computer and use it in GitHub Desktop.
Article.java V1
public class Article {
private int articleId;
private String title;
private String content;
public Article(String title, String content) {
this.title = title;
this.content = content;
}
public void setArticleId(int articleId) {
this.articleId = articleId;
}
public int getArticleId(){
return articleId;
}
public String getTitle() {
return title;
}
public String getContent() {
return content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment