2011年6月3日金曜日

0埋め

・サンプルコード
 System.out.println( String.format("%04d年%02d月",2011,1) );

・実行結果
 2011年01月

0 件のコメント:

コメントを投稿