Assignemnt #129 Simple Web Input

Code

     ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Simple Web Input
    ///File Name: SWI.java
    ///Date: 5/28/2016
    
 import java.net.URL;
import java.util.Scanner;

public class SWI {

    public static void main(String[] args) throws Exception {

        URL mURL = new URL("https://www.youtube.com/watch?v=X9wHzt6gBgI");
        Scanner webIn = new Scanner(mURL.openStream());

        String one = webIn.nextLine();
        String two = webIn.nextLine();

        webIn.close();

        System.out.println(one);
    }
}




    

Picture of the output

assignment129