例: CurrencySymbol, IsCurrencySpace, and IsCurrencySuffix properties

次のエージェントが表示する通貨国別設定は、通貨記号、通貨記号と数値の間にスペースを入れるかどうか、通貨記号を数値の後に付けるかどうか、です。

import lotus.domino.*;
public class JavaAgent extends AgentBase {
  public void NotesMain() {
    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      International inat = session.getInternational();
      System.out.println("Currency symbol is ¥"" +
      inat.getCurrencySymbol() + "¥"");
      if (inat.isCurrencySpace())
        System.out.println
        ("Space between currency symbol and number");
      else
        System.out.println
        ("No space between currency symbol and number");
      if (inat.isCurrencySuffix())
        System.out.println
        ("Currency symbol follows number");
      else
        System.out.println
        ("Currency symbol does not follow number");
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}