Advertisement
Kosheen

Untitled

Dec 26th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. // download URL
  2. // не забывайте обработать IOException
  3. URL url = new URL("https://ya.ru");
  4. InputStream is = (InputStream) url.getContent();
  5. Scanner sc = new Scanner(is);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement