Listing 3. Groovy processing from http://www.ibm.com/developerworks/java/library/j-jn10/index.html
class TheCompanyProcess { | |
public static String cleanUpNames(List listOfNames) { | |
listOfNames | |
.findAll {it.length() > 1} | |
.collect {it.capitalize()} | |
.join(',') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment