Harish,
I recommend reading the
java tutorial section about the wrapper classes Integer, Boolean, Float, and Double. Also, the api docs.
This will give you a general idea of how to pass ints as objects, floats as objects, etc.
It helped me a lot in figuring out solutions.
Kentaro