What is the Ideal Way to Convert an Integer to a String in Groovy

Viewed 21209

In plain old Java, there are many ways to convert an integer to a string, such that 5 becomes "5". The answers in this post have several good suggestions, String.valueOf(number) being my favorite.

My question is does Groovy provide a different/better way to do this? Or is the Java method still the way to go.

2 Answers
Related