⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datainterface.java

📁 一个贪吃蛇游戏
💻 JAVA
字号:
/**
 * @(#)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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -