information.java

来自「软件工程实践课程的答案哦」· Java 代码 · 共 54 行

JAVA
54
字号
import java.io.*;
public class Information implements java.io.Serializable
{
	protected String userName;
	protected int score;
	protected Information next;

	public Information(String pName,int pScore)
	{
		this.userName=pName;
		this.score=pScore;
		this.next=null;
	}
	public Information(String pName,int pScore,Information pNext)
	{
		this.userName=pName;
		this.score=pScore;
		this.next=pNext;
	}
	public Information()
	{
		this(null,-1);
	}
	
	public void setUserName(String pName)
	{
		this.userName=pName;	
	}
	
	public void setScore(int pScore)
	{
		this.score=pScore;
	}
	
	public String getUserName()
	{
		return this.userName;
	}
	
	public int getScore()
	{
		return this.score;
	}
	
	public Information getNext()
	{
		return this.next;
	}
	
	public void setNext(Information pNext)
	{
		this.next=pNext;
	}
}	

⌨️ 快捷键说明

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