Lab on Advanced Java Journal Questions
Lab on Advanced Java Journal Questions
Q.8 Write a Java program that uses an ArrayList to manage a list of student
names. Perform the following actions in your program:
Q.9 Write a Java program that demonstrates basic operations such as adding, removing, updating
searching and accessing elements in Vector.
Q.10 Implement a linked list in Java, Create methods to perform the following operations on the
linked list:
Q.11 Write java program to use iterator to traverse through ArrayList and perform the following
operations:
Q.12 Create a Java program named HashSetAssignment and Implement the following tasks within
the program:
Q.13 Implement a Java program that demonstrates the creation and manipulation of a
LinkedHashSet. The program should include the following functionalities:
Q.14 Implement a Java program that demonstrates the creation and manipulation of a TreeSet. The
program should include the following functionalities:
a. Implement a method named addElements which adds the following elements to the
treeSet: "Apple", "Banana", "Orange", "Grape", "Pineapple", "Mango"
b. Implement a method named displayElements which displays all the elements of the
treeSet.
c. Implement a method named removeElement which removes the element "Orange"
from the treeSet.
d. Implement a method named accessElement which checks if the treeSet contains the
element "Grape" and prints the result.
Q.15 Write java program to demonstrate concept of Dictionary in java and display content of
Dictionary on console.