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

📄 bookmark.java

📁 书籍"Java_面向事件编程"的附带光盘代码
💻 JAVA
字号:
//  Class to hold a pair of strings corresponding to a web URL //  and the description that should be associated with the URL.public class Bookmark {        private String description;        //  words describing web site    private String address;     //  URL for the web site        //  save website description and address in new object    public Bookmark(String theDescription, String theAddress)  {        description = theDescription;        address = theAddress;    }        //  return the website's description    public String getDescr()  {        return description;    }        //  return the website's URL or address    public String getAddr() {        return address;    }        //  return a string showing contents of the bookmark    public String toString() {        return description + " ---> " + address;    }    }

⌨️ 快捷键说明

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