Code example for MessageFormat

Methods: format

0
		if (s != null) {
			if (messageArgs == null) {
				message = s;
			} 
			else { 
				MessageFormat messageFormat = new MessageFormat(s);
				message = messageFormat.format(messageArgs);
			} 
 
			return message;
		} 
		else { 
			return ("[Contact I.T.  MessageUtil cannot find message id \"" + messageId + "\" in " + MESSAGE_FILE_NAME + ".]");
		} 
 
	} 
	 
}