| Author |
convert primitive int to Object
|
harish pathak
Ranch Hand
Joined: Dec 17, 2005
Posts: 51
|
|
Hi All, I have to convert primitive int to Object. How it is possible. Please reply soon I am getting error while executing following code.. request.setAttribute("fabricatorid",fabricatorid); request.setAttribute("bannerid",bannerid); as fabricatorid is int and it required Object. Thanks
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26213
|
|
Harish, Try:
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Kentaro Shinbashi
Greenhorn
Joined: Jun 08, 2006
Posts: 15
|
|
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
|
 |
 |
|
|
subject: convert primitive int to Object
|
|
|