Posts

Showing posts from April, 2021

How to save data in list in Java

 Rundown in Java gives the office to keep up the arranged assortment. It contains the list based strategies to embed, update, erase and search the components. It can have the copy components too. We can likewise store the invalid components in the rundown.  The Rundown interface is found in the java.util bundle and acquires the Assortment interface. It is a processing plant of ListIterator interface. Through the ListIterator, we can emphasize the rundown in forward and in reverse ways. The execution classes of Rundown interface are ArrayList, LinkedList, Stack and Vector. The ArrayList and LinkedList are broadly utilized in Java programming. The Vector class is expostulated since Java 5. List Interface declaration public   interface  List<E>  extends  Collection<E>  Java List Methods Method Description void add(int index, E element) It is used to insert the specified element at the specified position in a list. boolean add(E e) It is used t...