2009年1月29日木曜日

NumberFormatクラス

数値のフォーマット処理
DecimalFormatを利用するパターン
NumberFormat nf = new DecimalFormat("000");
String s = nf.format(99);

0 件のコメント: