String[] names = new String[namesVector.size()];
for (int i = 0; i < names.length; i++)
names[i] = (String) namesVector.elementAt(i);
Three lines instead of two. :)
-----Original Message-----
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Friday, January 24, 2003 11:57 AM
To: Ant Developers List
Subject: JDK 1.1 question
What's one to use in Ant to be JDK 1.1 equivalent to this:
String[] names = (String[]) namesVector.toArray(new
String[namesVector.size()]);
And I hope it's not a manual enumeration... I don't see it in
CollectionsUtil.
Thanks, --DD
PS: JDK 1.1 is really a PITA IMHO. Lets go Java 2 at least!!!
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>