📄 players.java
字号:
import java.util.*;
import java.io.*;
import java.lang.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
/** The Players class handles the Players' informaion include the name and the socore*/
public class Players implements Serializable
{
public String pname ;
public int pscore ;
public Players()
{
this.pname = "null";
this.pscore = 0;
}
public void setName(String s1)
{
this.pname = s1;
}
public void setScore(int s2)
{
this.pscore = s2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -