3 public class MessageFormatTest
5 public static void main(String args
[])
8 String
[] sa
= new String
[3];
9 String format
= "{0}.{1}() {2}";
11 sa
[0] = "MessageFormat";
15 String message
= MessageFormat
.format(format
, (Object
[])sa
);
18 throw new Exception("Unable to format message");
20 System
.out
.println("PASSED: " + message
);
21 } catch (Exception e
) {
22 System
.out
.println("FAILED: " + e
);