Java examples for Language Basics:int
Convert java int to Integer object
public class Main { public static void main(String[] args) { int i = 10;//from w ww. j av a 2s . c o m Integer intObj = new Integer(i); System.out.println(intObj); } }