array to List

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bill226
    New Member
    • Aug 2007
    • 2

    #1

    array to List

    Help!!
    I have a List of integers and an array of integers and I need to replace the contents of the List with the contents of the array. any advice.
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    Could you just create a new List using the array as an argument to initalize it, and then set the original list equal to the new list (i.e. origList = newList;)?

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Have a look at the Arrays.asList method.

      Comment

      Working...