Assignment #129

Code

      /*
jack newsom
period 5 
program SimpleWebInput
filename SimpleWebInput.java
date completed 2/22/16
*/


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.neocities.org/davis.txt");
        Scanner webIn = new Scanner(mURL.openStream());
        
        while ( webIn.hasNext()) {
        String one = webIn.nextLine();
        System.out.println(one);
        }

        webIn.close();

        
    }
}

    

Picture of the output