The Java Internationalization API
By Carol A. Jones
Dr. Dobb's Journal January 1998
<B>(a) </B> Object[] arguments = {new Date(System.currentTimeMillis()), "myfile.java"}; String result = MessageFormat.format("{1} was modified at {0,time} on {0,date}",arguments); <B>(b)</B> myfile.java was modified at 12:30 PM on Jul 23, 1997
Example 3: (a) generates (b).
Copyright © 1998, Dr. Dobb's Journal