public static void main(String[] args) { songQingGe so = new songQingGe(); String tex = ""; InputStream in = null; String url1 = ""; int count = 0; String url = "http://mp3.easou.com/col.e?id=76&page=" + i + "&l=251c2.2&esid=DOwaHlX9O-Q&wver=c"; // System.out.println(url); try { URL ur = new URL(url); in = ur.openStream(); byte[] by = new byte[2048]; while ((t = in.read(by)) != -1) { String te = new String(by, 0, t, "GBK");//中文乱码处理 tex += te; } }