Assignment #129 and Simple Web Input

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Simple Web Input
    /// File Name: SimpleWebInput.java
    /// Date Finished: 3/25/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-lgb.neocities.org/intro/printing/4/prog4.html");
            Scanner webIn = new Scanner(mURL.openStream());
    
            while(webIn.hasNext())
            {
                String line = webIn.nextLine();
                System.out.println(line);
            }
    
            webIn.close();
        }
    }
  
    

Picture of the output

Assignment #129 Assignment #129