Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
int to Object
02-26-2008, 10:20 PM
Post: #1
int to Object
How can I convert an int to Object type?
Find all posts by this user
Quote this message in a reply
02-27-2008, 01:50 PM
Post: #2
RE: int to Object
We can use the wrapper class for this purpose.

for eg:
[java]
int i=10;
Interger objI = new Integer(i);
[/java]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-27-2008, 02:05 PM
Post: #3
RE: int to Object
You can use the wrapper classes to convert any primitive types to an object.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: