I want to output some curly braces in java MessageFormat. For example, I know that the following does not work:
MessageFormat.format(" public {0} get{1}() {return {2};}\n\n", type, upperCamel, lowerCamel);
Is there any way to avoid parentheses around "return {2}"?
java escaping messageformat
Steve Bosman Jul 27 '09 at 8:39 2009-07-27 08:39
source share