1) java.text.MessageFormat.format(String pattern,Object[] arguments) ::
This is how it works -- Original string is provided with {0}, {1} and so on, in place of them and at runtime, the value for those are picked up from the array (in order) and replaced.
Ex : format("Hello {0}. welcome to {1} programming",new String[]{"world","Java"});
yields the String
Hello world. welcome to Java programming
2) For all of you facing the content not allowed in prolog:
http://mark.koli.ch/2009/02/resolving-orgxmlsaxsaxparseexception-content-is-not-allowed-in-prolog.html
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment