Assignment 129

Code

//Matthew Hughs
//5th period
//5/29/2016
//url.java

import java.net.URL;
import java.util.Scanner;

public class last {

    public static void main(String[] args) throws Exception {

        URL mURL = new URL("http://llhscp-clh.neocities.org/spoop.txt");
        Scanner webIn = new Scanner(mURL.openStream());

        while (webIn.hasNext())
        {
            String one = webIn.nextLine();
            System.out.println(one);
        }

        webIn.close();

        
    }
}
    

Picture of the output

Countingfor