Assignemnt #129: SimpleWebInput

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: SimpleWebInput
    /// File Name: SimpleWebInput.java
    /// Date Finished: 2/25/2016
    
import java.net.URL;
import java.util.Scanner;

public class SimpleWebInput 
{

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

        URL mURL = new URL("http://www-01.sil.org/linguistics/wordlists/english/wordlist/ReadMe.txt");
        Scanner webIn = new Scanner(mURL.openStream());

        while (webIn.hasNextLine())
        {
            System.out.println(webIn.nextLine());
        }
        
        webIn.close();
        
    }
}

    

Picture of the output

Assignment 129