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

📄 macfaq.java

📁 JSON(javascript) object creator and examples
💻 JAVA
字号:
/* Since the book was written, www.macfaq.com has moved off ofspacecadet.cnet.com onto a new host. Thus if you run this youwon't get the results shown in the book. */import java.net.*;class macfaq {  public static void main (String args[]) {    try {      InetAddress macfaq = InetAddress.getByName("www.macfaq.com ");      InetAddress spacecadet = InetAddress.getByName("spacecadet.cnet.com");      if (macfaq.equals(spacecadet)) {        System.out.println          ("www.macfaq.com is the same as spacecadet.cnet.com");      }      else {        System.out.println          ("www.macfaq.com is not the same as spacecadet.cnet.com");      }    }    catch (UnknownHostException e) {      System.out.println("Host lookup failed.");    }  }}

⌨️ 快捷键说明

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