Java 网络编程从入门到精通(5):使用InetAddress类的getHostName方法获得域名 ... 如果InetAddress对象是用getLocalHost方法创建的,getHostName返回的是本机名。
確定! 回上一頁