This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Groovy and the fly likes Groovy Script - Converting to UpperCase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy Script - Converting to UpperCase" Watch "Groovy Script - Converting to UpperCase" New topic
Author

Groovy Script - Converting to UpperCase

Bill Lee
Greenhorn

Joined: Feb 02, 2007
Posts: 20
Basically, I am attempting to iterate through a Map and change only it's values to all Caps. Does anyone know how to deal with this? Thanks.

My function changes BOTH keys and values to UpperCase and I only want the values to change.


Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6



GenRocket - Experts at Building Test Data
Bill Lee
Greenhorn

Joined: Feb 02, 2007
Posts: 20
Thank you so much! That worked.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Groovy Script - Converting to UpperCase