F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_12816486_29459\Main.java:1: 需要为 class、interface 或 enum
private static String request(String method, String url) {
               ^
0_0_12816486_29459\Main.java:4: 需要为 class、interface 或 enum
		StringBuilder result = new StringBuilder();
		^
0_0_12816486_29459\Main.java:6: 需要为 class、interface 或 enum
		try {
		^
0_0_12816486_29459\Main.java:11: 需要为 class、interface 或 enum
				HttpClient httpClient = new DefaultHttpClient();
				^
0_0_12816486_29459\Main.java:12: 需要为 class、interface 或 enum
				httpResponse = httpClient.execute(httpGet);
				^
0_0_12816486_29459\Main.java:14: 需要为 class、interface 或 enum
				HttpEntity httpEntity = httpResponse.getEntity();
				^
0_0_12816486_29459\Main.java:16: 需要为 class、interface 或 enum
				result.append(EntityUtils.toString(httpEntity, "utf-8"));
				^
0_0_12816486_29459\Main.java:18: 需要为 class、interface 或 enum
				StatusLine statusLine = httpResponse.getStatusLine();
				^
0_0_12816486_29459\Main.java:20: 需要为 class、interface 或 enum
				result.append("Protocol: " + statusLine.getProtocolVersion());
				^
0_0_12816486_29459\Main.java:22: 需要为 class、interface 或 enum
				int statusCode = statusLine.getStatusCode();
				^
0_0_12816486_29459\Main.java:24: 需要为 class、interface 或 enum
				result.append("StatusCode: " + statusCode);
				^
0_0_12816486_29459\Main.java:26: 需要为 class、interface 或 enum
			} else if (method.equals("POST")) {
			^
0_0_12816486_29459\Main.java:30: 需要为 class、interface 或 enum
				HttpClient httpClient = new DefaultHttpClient();
				^
0_0_12816486_29459\Main.java:31: 需要为 class、interface 或 enum
				httpResponse = httpClient.execute(httpPost);
				^
0_0_12816486_29459\Main.java:33: 需要为 class、interface 或 enum
				HttpEntity httpEntity = httpResponse.getEntity();
				^
0_0_12816486_29459\Main.java:35: 需要为 class、interface 或 enum
				result.append(EntityUtils.toString(httpEntity, "utf-8"));
				^
0_0_12816486_29459\Main.java:37: 需要为 class、interface 或 enum
				StatusLine statusLine = httpResponse.getStatusLine();
				^
0_0_12816486_29459\Main.java:39: 需要为 class、interface 或 enum
				statusLine.getProtocolVersion();
				^
0_0_12816486_29459\Main.java:41: 需要为 class、interface 或 enum
				int statusCode = statusLine.getStatusCode();
				^
0_0_12816486_29459\Main.java:43: 需要为 class、interface 或 enum
				result.append("StatusCode:" + statusCode);
				^
0_0_12816486_29459\Main.java:45: 需要为 class、interface 或 enum
			}
			^
0_0_12816486_29459\Main.java:52: 需要为 class、interface 或 enum
	}


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 05:49:42, Gzip enabled