Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating ArrayList dynamically

796586May 12 2010 — edited May 13 2010
Hi,

I need to create the Array List dynamically. I need to read the xml file, in that xml file contains some elements, i need to create the array list in the name of xml file element.

For e.g.,

The xml file contains the

<Person>
<hobbies>Foot Ball</hobbies>
<hobbies>Volley Ball</hobbies>
</Person>

In this i need to create the array list in the name of hobbies, suppose the hobbies name changed are any other element is newly added in xml file. Then i need to create the array list in the name of element added or changed.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2010
Added on May 12 2010
14 comments
597 views