Created
December 10, 2017 11:40
-
-
Save zqfan/3f8008b19180b6c4c66dfdbd3cfca48e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URL; | |
import java.io.InputStream; | |
public class Test { | |
public static void main(String args[]) throws Exception { | |
URL url = new URL("https://www.baidu.com"); | |
InputStream in =url.openStream(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment