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.
Create a class "
addAll" with an
ArrayList . Populate it with the object using the addAll(ArrayList) method.
Learn how to use the addAll method of the List interface. Example code discussed here will tell you how to do this.
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