Java Program to demonstrate Integer wrapper class

Program

import java.lang.Integer;
public class javaLangIntegerDemo
{
	public static void main (String[]args)
	{
		Integer iObj = new Integer(100);
		System.out.println ("Value of Integer object : " + iObj);
	}
}

Output

Value of Integer object : 100

Tags: