MessageFormat not formatting when single quotes are included
My mistake was, that I didn't use the returned value from method 'format(..)'
Wrong code:
MessageFormat.format(sss, testArgs);
System.out.println(sss);
Correct code:
String newString = MessageFormat.format(sss, testArgs);
System.out.println(newString);
The single quote must be escaped using a double single quote:
String sss = "{0}SomeText{1}''.{2}S..."