Here you can find the source of getFormatted(String messageKey)
public static String getFormatted(String messageKey)
//package com.java2s; //License from project: Open Source License import java.text.MessageFormat; import java.util.ResourceBundle; public class Main { public static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle("i18n/ytwv"); public static String getFormatted(String messageKey) { return RESOURCE_BUNDLE.getString(messageKey); }//ww w . j ava 2 s . com public static String getFormatted(String messageKey, Object... parameters) { return MessageFormat.format(RESOURCE_BUNDLE.getString(messageKey), parameters); } }