Bueno, queria hacer de este codgiose pueda usar como applet sin que mande error al usarlo como applet??
import java.applet.Applet;
import java.awt.Graphics;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class Main {
public static void main(String[] args)
throws MalformedURLException, IOException {
URL url = new URL("http://www.google.cl");
URLConnection con = url.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
}
}