import java.net.*; import java.io.*; public class URL1{ public static void main(String argumendid[]) throws IOException{ String aadress="http://lin2.tpu.ee/~jaagup"; BufferedReader sisse=new BufferedReader( new InputStreamReader(new URL(aadress).openStream()) ); String rida=sisse.readLine(); while(rida!=null){ System.out.println(rida); rida=sisse.readLine(); } } }