问题 更新时间2023/4/3 12:59:00 编写程序,获取www.hnu.cn的ip地址 答案 登录 注册 import java.net.*; public class getIP { public static void main(String args[]) { InetAddress hnu=null; try{ hnu= InetAddress.getByName(“www.hnu.cn”); }catch(UnknowHostException e) {} System.out.println(hnu); } } 出自:江开 >> 湖南大学-网络编程