[jdom-interest] Please Help - convert List to Array

Menke Mail john at eagleinfosystems.com
Wed Dec 13 08:51:55 PST 2000

I get a list of the children like this:

List childrenList = element.getChildren();

what I need to do is convert this list into an array of Element Objects

I try:

 Element[] elementArray = childrenList.toArray(objectArray);

but this does not work...

I know this may be better suited for a Java newsgroup, but I need this for a project and suspected someone on this list may know... I apologize for the off topic question.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20001213/3672fb17/attachment.htm

More information about the jdom-interest mailing list