Assignment 129: Simple Web Input

Code

  ///Name: Ryan McAteer
  ///Period: 5
  ///Project Name: SimpleWebInput
  ///File Name: Assignment129.java
  ///Date: 5/25/2016
    
import java.net.URL;
import java.util.Scanner;

public class Assignment129 {

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

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

        String one = webIn.nextLine();

        webIn.close();

        System.out.println(one);
    }
}







    

Picture of the output

This Should Work