I\'m having a problem using the java.text.MessageFormat object.
I\'m trying to create SQL insert statements. The problem is, when I do something like this:
Within a String, a pair of single quotes can be used to quote any arbitrary characters except single quotes. For example, pattern string
"'{0}'"represents string"{0}", not a FormatElement. A single quote itself must be represented by doubled single quotes''throughout aString. For example, pattern string"'{''}'"is interpreted as a sequence of'{(start of quoting and a left curly brace),''(a single quote), and}'(a right curly brace and end of quoting), not'{'and'}'(quoted left and right curly braces): representing string"{'}", not"{}".
From: MessageFormat (Java Platform SE 8 )