📄 bookmark.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 + -