Here you can find the source of getMessage(String message, Object... args)
public static String getMessage(String message, Object... args)
//package com.java2s; //License from project: Apache License import org.slf4j.helpers.MessageFormatter; public class Main { public static String getMessage(String message, Object... args) { return MessageFormatter.arrayFormat(message, args).getMessage(); }//from w w w . j a v a 2 s. co m }