读入 http://www.sina.com.cn 网页的内容,并以可读形式将其输出到一个文件中去
import java.io.*; import java.net.URL; /** * Created by Wu on 2017/4/17. */ public class ReadURL { public static void main(String args[]) throws Exception{ URL u = new URL("http://www.sina.com");
读入 http://www.sina.com.cn 网页的内容,并以可读形式将其输出到一个文件中去
import java.io.*; import java.net.URL; /** * Created by Wu on 2017/4/17. */ public class ReadURL { public static void main(String args[]) throws Exception{ URL u = new URL("http://www.sina.com");