ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Bishop" <matt.bis...@bea.com>
Subject RE: JDK 1.1 question
Date Fri, 24 Jan 2003 21:07:16 GMT
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:DDevienne@lgc.com]
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message