3:24 pm - Monday April 23, 3979

Tag Archives: Java.util.LinkedList

LinkedList Example Program for set(int index, E element)

//LinkedList Example Program for set(int index, E element) /** * @author   candidjava.com * @description: Replaces the element at the specified position in this list with the specified            element. */ import...

LinkedList Example Program for removeLast()

//LinkedList Example Program for removeLast() /** * @author   candidjava.com * @description: //Removes and returns the last element from this list. */ import java.util.LinkedList; public class List1 { public static void main(String...

LinkedList Example Program for pollFirst()

/** *@author: candidjava.com *@description: coding  for linked list poll method */ import java.util.LinkedList; public class LinkedListDemo { public static void main(String[] args) { // create a LinkedList LinkedList list =...

Vector Example Program for contains(Object o)

// Vector Example Program for contains(Object o) /** @author: candidjava.com @description: This program returns "true" if the vector contains the specified element otherwise returns false. */ import java.util.*; public...