Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to obtain array from arraylist

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body tell how to obtain an array of type Y from a java.util.List
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See how Java API classes are linked in our posts?

Look at the toArray method on that page, the one that takes a type.

(Gave up on trying to make that link work.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic