Here you can find the source of getErrorMsg(String format, Object[] argArray)
public static String getErrorMsg(String format, Object[] argArray)
//package com.java2s; //License from project: Apache License import org.slf4j.helpers.FormattingTuple; import org.slf4j.helpers.MessageFormatter; public class Main { public static String getErrorMsg(String format, Object[] argArray) { FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray); return ft.getMessage(); }/*from ww w . j ava 2 s .c om*/ public static String getErrorMsg(String format, Object arg) { FormattingTuple ft = MessageFormatter.format(format, arg); return ft.getMessage(); } }