Java Reference
In-Depth Information
} // end of createHyperLink()
public static void main(String[] args){
DBUtils.setupDb();
Application.launch(args);
}
}
class RssFeed {
int id;
String channelTitle = "News...";
String link;
List<NewsArticle> news = new ArrayList<>();
public String toString() {
return "RssFeed{" + "id=" + id + ",
channelTitle=" + channelTitle + ", link=" + link + ",
news=" + news + '}';
}
public RssFeed() {
}
public RssFeed(String title, String link) {
this.channelTitle = title;
this.link = link;
}
}
class NewsArticle {
String title;
String description;
String link;
String pubDate;
public String toString() {
return "NewsArticle{" + "title=" + title + ",
description=" + description + ", link=" +
link + ", pubDate=" + pubDate + ", enclosure="
+ '}';
}
Search WWH ::




Custom Search