This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create two-dimensional array in Groovy/grails

 
Doug Bell
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

Doug Bell
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a 2 dimensional array like this def twoDim = [[3,4,5,6],[1,2,4]]. Read more about it here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic