This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Groovy Script - Converting to UpperCase
 
Similar Threads
Keep the multibox checked, even when the values differ by case
Problem in deploying multiple EARs in same JBOSS having same application and EJBs in all the EARs
How do i improve variable visibility?
only upper case in input field
FBN: Search fields to be provided