Here you can find the source of getMessage(ResourceBundle messages, String msgKey, Object[] arguments)
public static String getMessage(ResourceBundle messages, String msgKey, Object[] arguments)
//package com.java2s; import java.text.MessageFormat; import java.util.ResourceBundle; public class Main { public static String getMessage(ResourceBundle messages, String msgKey, Object[] arguments) { return MessageFormat.format(messages.getString(msgKey), arguments); }/*from ww w. java 2 s. co m*/ }