datainterface.java
来自「一个贪吃蛇游戏」· Java 代码 · 共 27 行
JAVA
27 行
/**
* @(#)DataInterface.java
* @The interface of the data of the system.
*
* @Link Scholes
* @version 1.00 2008/7/21
*/
package Data;
//Java core packages
import java.io.*;
public interface DataInterface
{
//turn the object to String
public String toString();
//create a file if not existed
public void create() throws IOException;
//read the contents of the file
public void read() throws IOException;
//write the contents of the object to the file
public void write() throws IOException;
} //end class DataInterface
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?