I have been trying to get a running program to display text from a site that is mainly text, in this case hackaday.com. I just can't find the right methods. Can anyone get it working AND explain it to me?
import javax.swing.JLabel;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import javax.swing.JFrame;
public class SeeWebsite
{
public static void main(String[] argv) throws Exception
{
URL url = new URL("http://www.hackaday.com");
System.out.println(url.toExternalForm());
}
}