Assignemnt #129

Code

 /// Name: Daniel Nguyen
    /// Period: 6
    /// Project Name: SimpleWebInput
    /// File Name: SimpleWebInput.java
    /// Date: 3/11/2015

import java.io.File;
import java.util.Scanner;
import java.util.InputMismatchException;

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-it.neocities.org/129.txt");
        Scanner webIn = new Scanner(mURL.openStream());

        String one = webIn.nextLine();

        webIn.close();

        System.out.println(one);
    }
}



    

Picture of the output

Assignment 3
BACK HOME NEXT