Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Wrapper-class Examples of Wrapper Class

Related Tutorials


 
 

Share on Google+Share on Google+

Examples of Wrapper Class

Advertisement
This page discusses - Examples of Wrapper Class

Examples of Wrapper Class

In this page we are giving you the links of tutorials on wrapper classes in Java.

Wrapper classes are the classes present in the java.lang package. These classes provides object methods for the following eight primitive types:

1) byte
2) short
3) int
4) long
5) float
6) double
7) char
8) boolean

Following are the example of wrapper classes in Java.  

1.  Adding value through add(int, Object) method.

2.  Adding value through add(Object) method.

3.  Append all elements through addAll(ArrayList) method.

4.  To retrieve one of the element in the array through get() method.

5.  Change  a value through (Integer.toBinaryString()) method.

6.  Find total size through size() method.

7.  Remove a value through remove() method.

8.  Replace a  value through set(int, Object) method.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 17, 2011

Related Tutorials

Discuss: Examples of Wrapper Class  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com