• Post Reply 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

Multidimensional untyped ArrayList of irregular depth, to convert in a primitive Object array

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have seen the discussion initiated by Dav Marzek in April 2008 on Multidimensional ArrayList to an Object[][] array.
I need a solution with a re-entrant function including the ArrayList.toArray(), because the objects of my ArrayLists
- are situated at various level of the multidimensional structure (up to 8) (not a square ArrayList),
- are of various types : String, Boolean, BigDecimal and sometimes null
- are very numerous
I need to pass this ArrayList to an method of an API class that needing a primitive Object[][][]...
Does anybody have written such a reentrant method yet ?
Thanks by advance
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is unlikely that anybody will have such a specialised method ready for you.

Moving as not a "beginning" topic.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic