Assignment #129 and Simple Web Input

Code

    /// Name: Ali Kurland
    /// Period: 6
    /// Program Name: Simple Web Input
    /// File Name: Web.java
    /// Date Finished: 5/17/2016
    
    import java.net.URL;
    import java.util.Scanner;
    
    public class Web {
    
        public static void main(String[] args) throws Exception {
    
            URL mURL = new URL("http://llhscp-afk.neocities.org/web.txt");
            Scanner webIn = new Scanner(mURL.openStream());
    
            String one = webIn.nextLine();
            String two = webIn.nextLine();
            
            webIn.close();
    
            System.out.println(one);
            System.out.println(two);
        }
    }
    

Picture of the output

Assignment 129