In your Java 1.4 environment, you cannot use int for an object because it is not an object.
Java distinguishes between primitive types and reference types. Int is a primitive type. Booleans, bytes, char, short, long, floating and double.
The value of the reference type is a reference to some object. An โobjectโ is the root class of all objects.
Java 1.5 Integer , i.
int i = 99;
Object o = (Object) i;