Here you can find the source of getMessage(Properties prop, String key, Object... args)
public static String getMessage(Properties prop, String key, Object... args)
//package com.java2s; //License from project: Apache License import java.text.MessageFormat; import java.util.Properties; public class Main { public static String getMessage(Properties prop, String key, Object... args) { String value = prop.getProperty(key); if (value == null) return null; return MessageFormat.format(value, args); }/*from ww w .j a v a 2 s. co m*/ }