posting.java

来自「本人大学时大型作业用JAVA做的一个 BBS系统 模式MVC 非struts版 」· Java 代码 · 共 51 行

JAVA
51
字号
package domain;
import java.util.*;
public class Posting
{
	protected int id;	
	protected String content;
	protected String author;	
	protected Date time;
	public Posting()
	{
	}	
	public Posting(int id,String content,String author, Date time)
	{
		this.id=id;
		this.content=content;
		this.author=author;
		this.time=time;
	}
	public void setId(int id) 
	{
		this.id = id; 
	}
	public void setContent(String content) 
	{
		this.content = content; 
	}
	public void setAuthor(String author) 
	{
		this.author = author; 
	}
	public void setTime(Date time) 
	{
		this.time = time; 
	}
	public int getId() 
	{
		return (this.id); 
	}
	public String getContent() 
	{
		return (this.content); 
	}
	public String getAuthor() 
	{
		return (this.author); 
	}
	public Date getTime() 
	{
		return (this.time); 
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?