Assignemnt #129 Simple Web Inpput

Code

    ///Name: Joshua Pell
    ///Period: 6
    ///Project Name: Simple Web Input
    ///File Name: simpleWeb.java
    ///Date: 6/3/2015
    
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-jtp.neocities.org/intro/fileIO/129/text.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