It could be easy, but I don't know how to do.
Elements rows = table.select("tr");
String s[] = new String[rows.size()];
String p[] = new String[rows.size()];
for (int i = 1; i < rows.size(); i++) {
Element row = rows.get(i);
Elements cols = row.select("td");
s[i] = cols.get(0).text();
p[i] = cols.get(1).text();
String c = s[i] + ":" + p[i];
list1.add(c);
out.print(c); // not work; blank text document.
So I need to write string c to txt file. Everything I got is a blank txt file. I tried with cols.text() it worked, but writes all table body to txt file.