public static void main(String[] args) throws Exception {
	
		URL url = new URL("http://www.qq.com");
		
		BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
		
		String line = null;
		
		while(null != (line = br.readLine()))
		{
			System.out.println(line);
		}
	}