Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

array of arrays with arraylist

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Hello sir,

How ever i want to knnow how to store arraylist in two dimension array(Array of arrays).

My problem is:

I have 100000 row of data. i want to store the row number which is corresponding to the element store in the two dimension array.
Let me say that i have array of array called array[n][n]. I want to store the row number of the number 2 in the arraylist which is corresponding to the a array of array index array[2][2]. Like this this i should store 1000 elements, i.e., array[1][1],array[2][2],.....array[1000][1000].



 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Ok given you have:

How do you convert this into arraylist? Would it be better to keep it as a 2D array? Can you simplify your data to use collections like arraylist or vector or even maps etc?

What do you need to store in the first place disregarding the record/row number?
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closing as duplicate of this thread.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic