import java.io.IOException;
import java.net.*;

public class ServerResponse {

	public static void response(URL url) throws IOException {

		HttpURLConnection connection = (HttpURLConnection) url.openConnection();
	}

}
@@ -1,20 +1,42 @@
+package com.complet;%0A%0A
 import java.io.IOExc
@@ -228,14 +228,128 @@
 ction();
+%0A%0A%09%09try %7B%0A%0A%09%09%09connection.connect();%0A%0A%09%09%7D catch (Exception exp) %7B%0A%0A%09%09    System.err.println(exp.getMessage());%0A%0A%09%09%7D
 %0A%09%7D%0A%0A%7D

Call the connect method -of HttpUrlConnection Class- to initiate the connection, catch exceptions, define the package