Assignment #129

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: SimpleWebInput
    ///File Name: SimpleWebInput.java
    ///Date: 6/3/16
    
    
    
    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-cws.neocities.org");
            Scanner webIn = new Scanner(mURL.openStream());
        
            String one = webIn.nextLine();
            String two = webIn.nextLine();
        
            webIn.close();
        
            System.out.println(one);
            System.out.println(two);
        }
    }

            


    

Picture of the output

Assignment 129