SimpleWebInput

Code

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-sb.neocities.org/textttt.html");
        Scanner webIn = new Scanner(mURL.openStream());
        
        String one = "";
        
        while( webIn.hasNext() )
        {
        one = webIn.nextLine();
        System.out.println( one );
        }
        
        webIn.close();

        
    }
}

SimpleWebInput

Assignment 129