0% found this document useful (0 votes)
33 views1 page

Java Program for List Operations

The document provides instructions to create three Java lists: create a list and display its size, add elements and display an updated list, create a second list assigned the first list and display it, create a third list with an initial capacity and display it.

Uploaded by

UTPAL BHUNIA
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Java Program for List Operations

The document provides instructions to create three Java lists: create a list and display its size, add elements and display an updated list, create a second list assigned the first list and display it, create a third list with an initial capacity and display it.

Uploaded by

UTPAL BHUNIA
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

write a java program to create 3 list and folow these instruction:

1. create alist and display the size


2. add 2 elelments in a list then display the size and contents of a list
3. create bList and aasign aList in it.
4. display the size and contents of bList.
5. create clist and assign 20 as initial capacity
6. dusplay the size and contents of cList

You might also like