package algus; import java.io.*; import java.net.*; public class Vork1 { public static String loe(String aadress){ try(BufferedReader sisse=new BufferedReader(new InputStreamReader( new URL(aadress).openStream()))){ return sisse.lines().map(a->a+"\n").reduce("", String::concat); } catch(Exception ex){ return ex.getMessage(); } } public static void main(String[] args) { long algus=System.currentTimeMillis(); System.out.println(loe("http://www.microsoft.com/")); long ots=System.currentTimeMillis(); System.out.println(ots-algus); } }