import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.*; public class Veebilugeja3{ public static String leiaSisu(String aadress) throws IOException{ Document doc=Jsoup.connect(aadress).get(); return doc.text(); } public static String[] leiaViited(String aadress) throws IOException{ Document doc=Jsoup.connect(aadress).get(); Elements links=doc.select("a[abs:href]"); String[] vastus=new String[links.size()]; for(int i=0; ijavac -cp jsoup-1.6.1.jar;. Veebilugeja2.java C:\jaagup\prog1\tekst>java -cp jsoup-1.6.1.jar;. Veebilugeja2 0: http://minitorn.tlu.ee/~jaagup/kool/java 1: http://www.tlu.ee/~jaagup/cv.html 2: http://minitorn.tlu.ee/~jaagup/tempus 3: http://minitorn.tlu.ee/~jaagup/oma/ansambel/avaleht.html 4: http://minitorn.tlu.ee/~jaagup/oma/elupildid/ 5: http://minitorn.tlu.ee/~jaagup/oma/koolilood/sisukord.html */