Assignment 129; SimpleWebInput

Code

// Donovan Rich
// Period 6
// Simple Web Input
// SimpleWebInput.java
// 6/9/2016

import java.net.URL;
import java.util.Scanner;

public class SimpleWebInput
{

    public static void main(String[] args) throws Exception {

        URL mURL = new URL("http://llhscp-dcr.neocities.org/shitpost.html");
        Scanner webIn = new Scanner(mURL.openStream());

        while (webIn.hasNext())
        {
            String one = webIn.nextLine();
            System.out.println(one);
        }

        webIn.close();

        
    }
}
    

Picture of the output