record.java
来自「java写的俄罗斯方块游戏!是应用程序版而非小程序版」· Java 代码 · 共 25 行
JAVA
25 行
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 + =
减小字号Ctrl + -
显示快捷键?