retrieving arrays frrom vecttors or linked list

From: rohan shah (rohans84_at_gmail.com)
Date: 12/30/04


Date: 30 Dec 2004 08:42:31 -0800

Hey if i have stored array objects in a linked list or vector or any
other
list, then how do i retrive it to a 2 dimensional array.
Consider 1 dimension arrays of objects-obj1[] which i keep on adding
to a vector or any java list from the util class-list1. Thus 1st
element of l1 would contain an array obj1, 2nd element also contains
obj2[] with diff values, and so on. Now if there is an array 2
dimension array obj2[][], then how do I make it possible that
obj2[0][0] contains obj1[0] of element 0 of the list, obj2[0][1]
contains obj1[1] of element 0 of the list and so on, then obj2[1][0]
contains obj1[0] of the 2nd element of the list, obj2[1][1] contains
obj1[1] of 2nd element of the list and so on.
 in short obj2[i][j] should contains obj1[jth] element of ith element
of the list.
plz help me urgently.



Relevant Pages

  • Re: Populate a Multi-Column ListBox
    ... .Column provides the data for the whole two-dimensional Listbox array by Column - in the same way as .List provides it by Row; in Excel terms Column is List transposed. ... > generates an error "Could not set the column property. ... Thus a Two dimensional Array will create ...
    (microsoft.public.word.vba.userforms)
  • [SUMMARY] Game of Life (#193)
    ... a two dimensional array and a simple ... Board is asking the Cell for it's data and then changing it's state. ... can display either on the screen or by saving a sequence of images to ...
    (comp.lang.ruby)
  • Re: Sun f90 bad optimization for assumed-shape array
    ... >> the array is in contiguous storage. ... > pass any N dimensional array to any M dimensional one. ... be checked or corrected at link time. ...
    (comp.lang.fortran)
  • Re: Two Dimensional Arrays in Ruby?
    ... How does one define and use a two dimensional array in Ruby? ... which gets us our second dimension. ...
    (comp.lang.ruby)
  • Re: awk split() functions return array starts at 1
    ... i.e. an array declared N allowed indexes ... dimensional array, and the index of the diagonal is i-j. ... $1...$n argues even stronger for 1 based in this case (although ... involve taking sub-arrays, and if I take a sub-array from n to ...
    (comp.unix.shell)