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

Recommended Answers

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.

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.