/* Integer Sample 1 Update*/
/* コメント修正 */
class IntegerSample1{
	public static void main( String args[] ){
		//Integerオブジェクトの生成
		String s = "10";
		Integer objInt = new Integer(s);
		System.out.println("s = " + objInt );

		//float型への変換
		float f;
		f = objInt.floatValue();
		f+=1.0f;
		System.out.println("f = " + f );

		//n進数への変換
		int i=12;
		System.out.println("2進数: " + Integer.toBinaryString(i) );
		System.out.println("8進数: " + Integer.toOctalString(i) );
		System.out.println("16進数: " + Integer.toHexString(i) );
	}
}

