Assignment #129

Code

/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Simple Web Input
/// File Name: SimpleWebInput.java
/// Date Finished: 5/10/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-jgs.neocities.org/Projects/Printing/9.html");
            Scanner webIn = new Scanner(mURL.openStream());
            
            String one;
    
            while(webIn.hasNext()) {    
                
                one = webIn.nextLine();
    
                System.out.println(one);
            
            }
            
            webIn.close();
        }
    }
    
 
    

Code Output