I need a little help.
I have a string array (urllinks) which I want to fill with url links which are being parsed with jsoup through a for loop.
In below code example there are 2 urls but the list only gets filled with the first link. I don`t know how many links will be parsed, can be 1 but also 12.
public static String[] urllinks;
...
for (int i = 0; i < links.size(); i++) { // links size = 2
String url = doc.select("a").attr("abs:href");
urllinks[i] = url;
}
Any help would be appreciated.
Thanks in advance.
doc.select("a").attr("abs:href");does, and why would you expect to successive calls to yield different results?