import java.io.IOException; import java.io.PrintWriter; import java.util.StringTokenizer; import org.jsoup.Connection; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class pobranieDanych { public static void main(String[] args) throws IOException { Connection[] url = new Connection[6]; int i, j, n = 0, m = 0, iloscOpinii = 5000; String slowo; String[] oceny = new String[iloscOpinii]; int[] n_dobry = new int[iloscOpinii]; int[] n_zly = new int[iloscOpinii]; int[] n_tak = new int[iloscOpinii]; int[] n_nie = new int[iloscOpinii]; int[] n_ok = new int[iloscOpinii]; int[] n_pomocny = new int[iloscOpinii]; int[] length = new int[5000]; for(j=0; jm) { zapis1.println(oceny[m] + " | " + "length:" + length[m] + " ilosc_dobry:" + n_dobry[m] + " ilosc_zly:" + n_zly[m] + " ilosc_tak:" + n_tak[m] + " ilosc_nie:" + n_nie[m] + " ilosc_ok:" + n_ok[m] + " ilosc_pomocny:" + n_pomocny[m]); m++; } zapis1.close(); PrintWriter zapis2 = new PrintWriter("C:\\Users\\48724\\IdeaProjects\\si\\opinieVW\\doOceny.txt"); while(n>m) { zapis2.println(oceny[m] + " | " + "length:" + length[m] + " ilosc_dobry:" + n_dobry[m] + " ilosc_zly:" + n_zly[m] + " ilosc_tak:" + n_tak[m] + " ilosc_nie:" + n_nie[m] + " ilosc_ok:" + n_ok[m] + " ilosc_pomocny:" + n_pomocny[m]); m++; } zapis2.close(); System.out.println("Ilość wierszy w train.txt: " + m); } }