while (it.isValid()) {
SimpleAttributeSet s = (SimpleAttributeSet) it.getAttributes();
linkURLs = (String) s.getAttribute(HTML.Attribute.HREF);
if (linkURLs != null) {
System.out.println(linkURLs);
}
it.next();
}
This loop shows the URLs.
How to display the getResponseCode () for each address? It must be done in a loop? Can anyone write such code? I do not know how you go about it.