URL类 读取一个网页到本地
public static void main(String[] args) throws UnknownHostException {InetAddress address = InetAddress.getByName("自己机器名称");String str = new String(address.getAddress( ));System.out.println(address ); address = InetAddress.getByName("http://www.baidu.com"); System.out.println( address );}
?