for(Element city : cities) {
Elements links = city.getElementsByTag("a");
if("".equals(stateName.trim())) {
// No state, then set city as the state
stateName = capitalWord(city.text());
stateLink = links.attr("abs:href");
}
City cityObj = new City(capitalWord(city.text()), links.attr("abs:href"));
cityList.add(cityObj);
}
State stateObj = new State(stateName, stateLink, cityList);