-2

私は列挙型を持っており、選択のようなものを使用して MessageFormat で文字列を出力します。どうすればできますか?

例:

public enum Style{
   American,
 European}
...
String s = MessageFormat.format(" {0,choice,American#am|European#eu|null#no}",
   Style.American);
4

1 に答える 1