Assignemnt 129 and Simple Web Input

Code

    /// Name: Xinting Chen
    /// Period: 7
    /// Program Name:Simple Web Input
    /// File Name: SimpleWebInput.java
    /// Date Finished: 6/3/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-xc.neocities.org/intro/printing/4/sometext.txt");
                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