MessageFormat use cases[@more@]
- Format a {0} parameter in a string;
private static final String TEST= "aab{0}ccd";
MessageFormat msgFormat = new MessageFormat(TEST);
args[0] = "123";
String doc = msgFormat.format(args);
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/792140/viewspace-918454/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/792140/viewspace-918454/