Raised This Month: $ Target: $400
 0% 

Extended arraylist


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sizzla
Junior Member
Join Date: Jun 2014
Old 07-18-2017 , 08:37   Extended arraylist
Reply With Quote #1

Hello
For my purposes I need structure something like own arraylist with additional variables and i wondering how to obtain this goal. Normally I would use enum and then array of enums, but is there any other better way?

ArrayList g_Zoo = new ArrayList(SIZE);
-g_Zoo[0]
---char[] name
---char[] description
---int years
---ArrayList animals

-g_Zoo[1]
---char[] name2
---char[] description2
---int years2
---ArrayList animals2

...

-g_Zoo[SIZE-1]
---char[] nameSIZE-1
---char[] descriptionSIZE-1
---int yearsSIZE-1
---ArrayList animalsSIZE-1


etc..


Any ideas?
Sizzla is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode