62,614
社区成员
发帖
与我相关
我的任务
分享
int i = 0;
while (i < 5000) {
URLConnection conn = new URL("http://tieba.baidu.com/p/1480640118").openConnection();
InputStream is = conn.getInputStream();
is.close();
System.out.println("浏览" + i + "次");
i++;
}
HttpClient httpClient = new HttpClient();
GetMethod getMethod = new GetMethod("http://www.ibm.com/");
int statusCode = client.executeMethod(getMethod);