Code example for MessageFormat

Methods: formatsetLocale

	 * @return a message string 
	private static String buildMessage(final String pattern, final Object[] arguments,
			final Locale locale) {
		// do it the hard way, for Java 1.3. compatibility 
		final MessageFormat mf = new MessageFormat(translate(pattern, locale));
		return mf.format(arguments);
	 * Constructs a new <code>MathException</code> with no detail message. 
	public MathException() { 
		this.pattern = null;
		this.arguments = new Object[0];
		this.rootCause = null;
Stop searching for code, let great code find you!  Add Codota to your java IDE