Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a List from an Array?

 
Holmes Wong
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I know I can get an item from an array, then add
it to a list. But what is the best way to do it?
I cannot find any array or list function to achieve it in one step. Any sugestion?
 
Tom Hughes
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can turn a array into a List by using the

I think that's what you wanted.
Tom
 
Holmes Wong
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, very helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic