velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben <newread...@gmail.com>
Subject String Array in Velocity
Date Sun, 09 Jan 2005 11:05:21 GMT
Hi

I have a String Array, how can I retrieve its value if I know the index?

Say I have this:

String[] values = new String[] { "1", "2" }

I have tried using this but it didn't work:

$values[1]

Thanks
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message