• Post Reply Bookmark Topic Watch Topic
  • New Topic

Array list which contains events  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1063
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the next code for listing the content of an arrayList.



I would like to list events which currently are happening in a city. Is possible to connect with a feed API or another possible solution?

Regards, Isaac
 
Charles D. Ward
Ranch Hand
Posts: 99
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ArrayList doesn't contain Events, it contains Strings.

Why are you converting it to an Object array and then to a String array? Why not just print out the Strings directly from the ArrayList?
 
Campbell Ritchie
Marshal
Posts: 56540
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can even get the List to print out and give you a nice display:-
[Sunday, Monday, Tuesday]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!