import java.io.*; public class Avaleheviited{ public static void main(String[] argumendid) throws IOException{ BufferedReader sisse=new BufferedReader(new FileReader("avaleht.html")); for(String rida=sisse.readLine(); rida!=null; rida=sisse.readLine()){ if(rida.indexOf("href=\"")>0){ int algus=rida.indexOf("href=\"")+6; int ots=rida.indexOf("\"", algus); String viide=rida.substring(algus, ots); System.out.println(viide); } } } }