📄 record.java
字号:
package like.els;
import java.io.Serializable;
public class Record implements Serializable
{
String name = "none ";
int score = 0;
public Record()
{
}
public Record(String name,int score)
{
if(name.getBytes().length>10)
this.name = new String(name.getBytes(),0,10);
else
this.name = name;
while(this.name.getBytes().length<10)
this.name += " ";
this.score = score;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -