java.lang.Integer.toString()のサンプル
サンプルコード:
package com.arkgame.itstudy;
public class StrDemo11 {
public static void main(String[] args) {
String cft = "" + 10;
String cft2 = new Integer(11).toString();
String cft3 = Integer.toString(12);
System.out.println("数値から文字列へ変換結果:");
System.out.println(cft + "\n" + cft2 + "\n" + cft3);
}
}
数値から文字列へ変換結果:
10
11
12