Advertisement
Guest User

Untitled

a guest
Aug 6th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public void Connect(){
  2. try {
  3. URL url = new URL(вставить сайт);
  4. Scanner scn = new Scanner(url.openStream());
  5. while(scn.hasNextLine()){
  6. s = scn.nextLine();
  7. }
  8. } catch (MalformedURLException e) {
  9. e.printStackTrace();
  10. } catch (IOException e) {
  11. // TODO Auto-generated catch block
  12. e.printStackTrace();
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement