Assignemnt #129 Simple Web Input
Code
/// Name: Drew Boxold
/// Period 5
/// Program Name: SimpleWebInput
/// File Name: SimpleWebInput.java
/// Date Finished: 6/2/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://llhscp.neocities.org/davis.txt");
Scanner webIn = new Scanner(mURL.openStream());
while (webIn.hasNextLine())
{
System.out.println(webIn.nextLine());
}
webIn.close();
}
}
Picture of the output