Thread
:
Extended arraylist
View Single Post
Author
Message
Sizzla
Junior Member
Join Date: Jun 2014
07-18-2017 , 08:37 Extended arraylist
#
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
View Public Profile
Send a private message to Sizzla
Find More Posts by Sizzla