Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // download URL
- // не забывайте обработать IOException
- URL url = new URL("https://ya.ru");
- InputStream is = (InputStream) url.getContent();
- Scanner sc = new Scanner(is);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement