hi how to convert int into object in java
kindly explain me with simple example
have a nice time

Recommended Answers

All 2 Replies

You could use the Integer class to hold the value of the int.
See the API doc of the Integer class for how to use it.

Integer intval = new Integer(999)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.