Here you can find the source of StrFormat(String pattern, Object... arguments)
public static String StrFormat(String pattern, Object... arguments)
//package com.java2s; //License from project: Open Source License import java.text.MessageFormat; public class Main { public static String StrFormat(String pattern, Object... arguments) { Object argumentStr[] = new String[arguments.length]; for (int i = 0; i < argumentStr.length; i++) { argumentStr[i] = arguments[i].toString(); }/*from w ww. j a v a2s .co m*/ return MessageFormat.format(pattern, argumentStr); } }