Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- try {
- URL url = new URL("https://www.dropbox.com/s/4zp7dhso5a35zh4/%D0%A2%D0%B5%D0%BA%D1%81%D1%82%20%D1%86%D0%B8%D1%82%D0%B0%D1%82%D1%8B.txt?dl=1");
- Scanner scn = new Scanner(url.openStream());
- while(scn.hasNextLine()){
- String s = scn.nextLine();
- System.out.println(s);
- }
- } catch (MalformedURLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement