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

📄 bookmark.java

📁 Java程序设计技巧与开发实例附书源代码。
💻 JAVA
字号:

public class Bookmark {
  protected String title, address, description, category;

  public Bookmark() {
    title = address = description = category = "";
  }

  public Bookmark(String _title, String _address) {
    title = _title;
    address = _address;
    description = category = "";
  }

  public String toString() {
    return title;
  }

  public static Bookmark[] getSampleBookmarks() {
    Bookmark url[] = new Bookmark[4];
    url[0] = new Bookmark("Wuhan University", "http://www.whu.edu.cn/");
    url[0].description = "The Wuhan University of Hubei";
    url[0].category = "Universities";
    url[1] = new Bookmark("Luojia Shanshui", "http://bbs.whu.edu.cn/");
    url[1].description = "BBS ";
    url[1].category = "BBS";
    url[2] = new Bookmark("Sohu", "http://www.sohu.com/");
    url[2].description = "The most popular search engine on the web";
    url[2].category = "Search Engines";
    url[3] = new Bookmark("Baidu", "http://www.baidu.com/");
    url[3].description = "A pretty good alternative to Sohu.";
    url[3].category = "Search Engines";
    return url;
  }
}

⌨️ 快捷键说明

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