See the class description about format numbering. Set a format to be used on a variable in the pattern. This is not the argument number. If variable is out of range, an ArrayIndexOutOfBoundsException is thrown. See the class description about format numbering.
Returns pattern with formatted objects.
Avoids explicit creation of MessageFormat, but doesn't allow future optimizations. The parse may fail in a number of circumstances. The returned error index is the starting offset of the sub-patterns that the string is comparing with. When an error occurs, the call to this method will return null. If the soruce is null, return an empty array.