import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
public class MainClass {
public static void main(String[] args) throws Exception {
URL u = new URL(args[0]);
URLConnection uc = u.openConnection();
BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
String s = br.readLine();
while (s != null) {
System.out.println(s);
s = br.readLine();
}
}
}
|