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

📄 fruit.java

📁 JAVA 工作指南 可以说是程序员必备的东西哦
💻 JAVA
字号:
import javax.naming.*;/** * This class is used by the Bind example. * It is a referenceable class that can be stored by service * providers like the LDAP and file system providers. */public class Fruit implements Referenceable {    String fruit;        public Fruit(String f) {	fruit = f;    }        public Reference getReference() throws NamingException {	return new Reference(	    Fruit.class.getName(),	    new StringRefAddr("fruit", fruit),	    FruitFactory.class.getName(),	    null);          // factory location    }    public String toString() {	return fruit;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -