Assignemnt #129 SimpleWebInput.java

Code

    /// Name: Boris Kazantsev
    /// Period: 6
    /// Program Name: SimpleWebInput
    /// File Name: SimpleWebInput.java
    /// Date Finished: 5/30/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-jh.neocities.org/dam.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

Pic