Assignemnt #129: Simple Web Input

Code

    /// Name: Cassie Rapp
    /// Period: 6
    /// Program Name: Simple Web Input
    /// File Name: SimpleWeb.java
    /// Date Finished: 6/9/2016
    
    import java.net.URL;
    import java.util.Scanner;
    
    public class SimpleWeb {
    
        public static void main(String[] args) throws Exception {
    
            URL mURL = new URL("http://llhscp-cbr.neocities.org/Intro/final2/128/prog128.html");
            Scanner webIn = new Scanner(mURL.openStream());
            
            String one;
    
            while(webIn.hasNext()) {    
                
                one = webIn.nextLine();
    
                System.out.println(one);
            
            }
            
            webIn.close();
        }
    }
    

Picture of the output

Assignment 129