import java.net.*; import java.io.*; public class Salvestus1{ public static void main(String argumendid[]) throws IOException{ int loendur=0; BufferedReader klaviatuurilt=new BufferedReader( new InputStreamReader(System.in) ); System.out.println("Palun aadress:"); String aadress=klaviatuurilt.readLine(); PrintWriter faili=new PrintWriter(new FileWriter("andmed.html")); String volinikuaadress="cache.tpu.ee"; String volinikuvarat="3128"; System.getProperties().put("proxySet", "true"); System.getProperties().put("proxyHost", volinikuaadress); System.getProperties().put("proxyPort", volinikuvarat); BufferedReader sisse=new BufferedReader( new InputStreamReader(new URL(aadress).openStream()) ); String rida=sisse.readLine(); while(rida!=null){ System.out.println(rida); faili.println(rida); for(int i=0; i