A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
create two-dimensional array in Groovy/grails
Joined: Mar 06, 2012
Mar 06, 2012 09:55:09
I am extreme newbie. I'd like to read in multiple lines and create a two-dimensional array from them. I am using Groovy/Grails with Intellij. Can you show me how to create/update a two-dimentsional character array?
Thanks so much!
Joined: Sep 08, 2007
Mar 08, 2012 04:45:10
You can create a 2 dimensional array like this
def twoDim = [[3,4,5,6],[1,2,4]]
. Read more about it
Mohamed Sanaulla |
I agree. Here's the link:
subject: create two-dimensional array in Groovy/grails
how to delete row from Jtable
LDAP with Grails
how to do an update an application
Array conversion Question from Dan's test
Turn this Java into Groovy!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014