=start && x<=end) {
title = titles.get(x);
break;
}
}
for(long x: iDesc) {
if(x>=start && x<=end) {
desc = descriptions.get(x);
break;
}
}
for(long x: iLink) {
if(x>=start && x<=end) {
link = links.get(x);
break;
}
}
for(long x: iDates) {
if(x>=start && x<=end) {
date = dates.get(x);
break;
}
}
// And let's put the result into the entries with a nice html layout.
entries.add("" + title + "
" + desc +
"
" + link +
"
Published on " + date + "
");
}
// The end. Fertig. Fini.
}
public String[] getEntries() {
// Returning an array to not expose the internal method of indexing.
// We could sort them, too. But this is for another time.
String[] result = new String[entries.size()];
entries.toArray(result);
return result;
}
}