rafe@rafe.us someone@example.com someoneelse@example.com rafe@rafe.us This is the subject This is the body of an email message.
可定制的模板 屬性文件的一個有用的特性是你可以使用MessageFormat 類用動態傳入的值替代屬性文件里的被指定參數。比如說,假如你需要在屬性文件里指定errors,其中一個errors是file not found, 你可以這樣寫: file.not.found.error=Error, could not find file {0}. 然后,在運行時刻,你這樣使用MessageFormat: