MessageFormat: Formater un message

Author:


{filelink=5925}


import java.text.MessageFormat;

public class ExempleFomat {
  public static void main(String[] argv) throws Exception {
    Object[] params = new Object[] { "Fred", "Jhon", "Peter" };
    String msg = MessageFormat.format("Bonjour {2}", params);
    System.out.println(msg);
  }
}

A Voir sur le même Sujet:

  • jformattedtextfield messageformat
  • remplacer caractère messageformat java
  • messageformat java arabic
  • jformatedTextField

Leave a Reply

Your email address will not be published. Required fields are marked *