Results 1 to 2 of 2
  1. #1
    pink123 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Assign elements of list to an array

    Hi ,

    I have a list A which can have maximum 13 elements depending on users input.
    I have an array B which has 15 elements
    now I have to do is B[2]=1st elemnt of list A if present
    B[3]=2 nd elemnt of list A if present
    B[4]= 3rd elemnt of list A if present

    Please help me how can I achieve this.


  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

Similar Threads

  1. assign a value to two dimensional array
    By makpandian in forum New To Java
    Replies: 4
    Last Post: 10-05-2011, 05:21 AM
  2. Assign Different Objects to Array
    By Briksins in forum New To Java
    Replies: 17
    Last Post: 12-08-2010, 09:44 AM
  3. Adding elements in array list and vectors using threads
    By in forum Advanced Java
    Replies: 2
    Last Post: 10-10-2010, 03:07 AM
  4. Array Assign Values from a Textfile
    By fawadafr in forum Java Applets
    Replies: 6
    Last Post: 11-30-2008, 12:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts