• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Integer.class  RSS feed

 
kayanaat sidiqui
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Integer.class and why we use this?
Please let me clear with the help of examples.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the API documentation explains...
The Integer class wraps a value of the primitive type int in an object...

In addition, this class provides several methods for converting an int to a String and a String to an int, as well as other constants and methods useful when dealing with an int.
 
kayanaat sidiqui
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Weber
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!