(Object a, Object b)
| 3 | public class MessageFormatTest { |
| 4 | |
| 5 | private static void assertEquals(Object a, Object b) { |
| 6 | if(!a.equals(b)) { |
| 7 | throw new RuntimeException("[" + a + "] != [" + b + "]"); |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | public static void main(String[] args) { |
| 12 | assertEquals("Hi there", MessageFormat.format("Hi there", "a")); |