From be6b9f8cb7df9c7bc8082c0acc7fc905a26ed9bb Mon Sep 17 00:00:00 2001 From: ZhangJinxuan <2194936226@qq.com> Date: Mon, 11 May 2026 15:57:24 +0800 Subject: [PATCH] =?UTF-8?q?'=E4=B8=8A=E4=BC=A0=E4=BF=AE=E6=94=B9=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81Article.java=E6=96=87=E4=BB=B6'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Article.java | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Article.java diff --git a/Article.java b/Article.java new file mode 100644 index 0000000..5e19b06 --- /dev/null +++ b/Article.java @@ -0,0 +1,53 @@ +package com.example.datacollect.model; +import java.util.Date +public class Article { + private String title; + private String url; + private String content; + private String author; + private String Date publishDate; + public Article(String title, String url, String content,String author,Date publishDate) { + this.title = title; + this.url = url; + this.content = content; + this.author = author; + this.publishDate= publishDate; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + public String getAuthor(){ + return author; + } + public void setAuthor(String author){ + this.author= author; + } + @Override + public String toString() { + return "Article{" + + "title='" + title + '\'' + + ", url='" + url + '\'' + + '}'; + } +}