Quantcast
Channel: Get Items Feeds4J Java Array - Stack Overflow
Browsing index pages (3 articles)

Get Items Feeds4J Java Array

Im from php, so i want to lear java. In php in a for loop if i want to create an array i just do $items = $this->getItems(); for($i=0;$i<count($items);$i++) { $myarrayitems[$i] = $items[$i]; }...

View Article


Answer by Alberto Zaccagni for Get Items Feeds4J Java Array

You have to define title as an array before using using it: String title = new String[ARRAY_DIMENSION]; If you don't know ARRAY_DIMENSION you could use this: List<String> title = new...

View Article


Answer by Jon Skeet for Get Items Feeds4J Java Array

You need to create the array with the right number of elements to start with. Something like this: public String[] getItems(String url) throws Exception { URL rss = new URL(url); Feed feed =...

View Article
Browsing index pages (3 articles)


Latest Images