Home Java Wrapper-class Wrapper Class Tutorial and Examples

Related Tutorials


 
 

Share on Google+Share on Google+

Wrapper Class Tutorial and Examples

Advertisement
In this section you will learn about Wrapper classes and all the methods that manipulate data and allows to operate a certain work.

Wrapper Class Tutorial and Examples

     

  1. Wrapper Classes 
     In this section you will learn about Wrapper classes and all the methods that manipulate data and allows to operate a certain work.
      
  2. Insert an element with the add(int, Object) method
    In this section you will learn to
    insert an element at the specified position using the add(int, Object) method. Here is an example that provides the usage of the add(int, Object) method in more detail.
      
  3. Insert an object with the add(Object) method
    In this section you will learn to
    insert an object at the end of a list using the add(Object) method. Here is an example that provides the usage of the add(Object) method in more detail.
      
  4. Insert an array list of objects with addAll(ArrayList) method
    In this section you will learn
    to insert an array list of objects to another list. Here is an example that provides the usage of the addAll(Arrayist) method in more detail.
     
  5. To Retrieve a Particular Object From an ArrayList 
    In this section you will learn to retrieve an ArrayList object (that contains multiple elements)
    using the get() method. Here is an example that provides the usage of the get() method in more detail.
     
  6. Convert an Integer type object to a String object
    In this section you will learn to
    convert the Integer type object to a String object using the Integer.toBinaryString() and Integer.toHexString() methods.
      
  7. Retrieve the dynamic capacity of a list
    In this section you will learn to get the capacity of a list i.e. retrieving the number of objects contained in it. Here is an example that provides the usage of the size() method in more detail. 
     
  8. Remove a value with remove() method
    In this section you will
    learn to remove an object from a particular position specified by a  index value. Here is an example that provides the usage of the remove() method in more detail. 
      
  9. Replace an object with set(int, Object) method
    In this section you will
    learn to replace an object from a particular position specified by a index value. Here is an example that provides the usage of the set(int, object) method in more detail.
Advertisements

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: June 15, 2009

Related Tutorials

Discuss: Wrapper Class Tutorial and Examples  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:5
prabhuling.poddar
August 18, 2011
java

i want
imran khan
December 9, 2011
java

learn java
jeetesh kumar
February 12, 2012
wrapper class in java

how are uses inheritance in built wrapper class?
bharat gupta
April 11, 2012
java

what is wrapper class in java
muruganandham
July 3, 2013
java

please explain in depth of the wrapping class
DMCA.com