Browsed by
Month: Sep 2010

Fun With MessageFormat

Fun With MessageFormat

The java.text.MessageFormat class is one those classes that you need to use at least once during your practice of The Dark Arts. Its purpose is really quite simple. It takes in a bunch of objects, formats them, and then places them into the given pattern in the appropriate places. We will be calling the following method in the MessageFormat class. [java] public static String format(String pattern, Object … arguments) [/java] This method takes in a pattern and a variable argument…

Read More Read More