import java.net.*;
import java.io.IOException;
public class getURLConnection {
public static void main(String args[]) {
URL u;
URLConnection uc;
try {
u = new URL("http://www.ora.com");
try {
uc = u.openConnection();
}
catch (IOException e) {
System.err.println(e);
}
}
catch (MalformedURLException e) {
System.err.println(e);
}
}
}
|