Here you can find the source of getFormatValue(String value, Object[] args)
private static String getFormatValue(String value, Object[] args)
//package com.java2s; //License from project: Apache License import java.text.MessageFormat; public class Main { private static String getFormatValue(String value, Object[] args) { if (value != null) { value = MessageFormat.format(value, args); }/*from w w w. jav a 2 s . co m*/ return value; } }