Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / testsuite / java.text / MessageFormatTest.java
blob94efe94afad5c4fa4e3a3fa3f731765866b9dc19
1 import java.text.*;
3 public class MessageFormatTest
5 public static void main(String args[])
7 try {
8 String[] sa = new String[3];
9 String format = "{0}.{1}() {2}";
11 sa[0] = "MessageFormat";
12 sa[1] = "format";
13 sa[2] = "worked";
15 String message = MessageFormat.format(format, (Object[])sa);
17 if (null == message)
18 throw new Exception("Unable to format message");
20 System.out.println("PASSED: " + message);
21 } catch (Exception e) {
22 System.out.println("FAILED: " + e);