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:
First thing that came to mind was to change str1, str2, str3 to have the single quotes around them.
Object[] args = { str0, "'" + str1 + "'", "'" + str2 + "'", "'" + str3 + "'", str4 };
Then, of course, remove the single-quotes from your query string.