3 Star 0 Fork 0

20165231 Yhooyon/java-besti-is-wyhy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Example13_2.java 482 Bytes
一键复制 编辑 原始数据 按行查看 历史
20165231 Yhooyon 提交于 7年前 . week9_4
import java.net.*;
public class Example13_2 {
public static void main(String args[]) {
try{ InetAddress address_1=InetAddress.getByName("www.sina.com.cn");
System.out.println(address_1.toString());
InetAddress address_2=InetAddress.getByName("166.111.222.3");
System.out.println(address_2.toString());
}
catch(UnknownHostException e) {
System.out.println("无法找到 www.sina.com.cn");
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Yhooyon/java-besti-is-wyhy.git
git@gitee.com:Yhooyon/java-besti-is-wyhy.git
Yhooyon
java-besti-is-wyhy
java-besti-is-wyhy
master

搜索帮助