Code:
String hostname = "";//"http://earthquake.usgs.gov";
String linkString = hostname + link.getAttribute("href");
Is the link.getAttribute("href") suppose to be returning
http://earthquake.usgs.gov as part of the string? On the code I typed, it does return the hostname and the url looks like the following:
http://earthquake.usgs.govhttp://earthquake.usgs.gov/.......
The above code was used to eliminate the extra hostname string.