Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.net.*;
- public class Koen {
- public static void main(String[] args){
- try{
- URL myUrl = new URL("http://www.hackthissite.org/");
- BufferedReader br = new BufferedReader(new InputStreamReader(myUrl.openStream()));
- String temp;
- while((temp = br.readLine()) != null)
- System.out.println(temp);
- }
- catch (Exception e){
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement