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.
Create a class "
Get" with an ArrayList .Populate
it with the integer objects. Now retrieve an object( that
is contained in the arraylist) using the get() method.
Here is the Code of the Example :
Here is the Output of the Example :
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 28, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles