Assignemnt #129 and Simple Web Input

Code

    /// Name: Brian Phillips
    /// Period 5
    /// Program Name: Simple Web Input
    /// File Name: WebInput.java
    /// Date Finished: 6/2/2016
import java.net.URL;
import java.util.Scanner;

public class WebInput 
{

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

        URL mURL = new URL("https://www.w3.org/Addressing/URL/url-spec.txt");
        Scanner webIn = new Scanner(mURL.openStream());

        while (webIn.hasNextLine())
        {
            System.out.println(webIn.nextLine());
        }
        
        webIn.close();
        
    }
}


    

Picture of the output

WebInput.html