BeginnersBook

  • Home
  • Java
    • Java OOPs
    • Java Collections
    • Java Examples
  • C
    • C Examples
  • C++
    • C++ Examples
  • DBMS
  • Computer Network
  • Python
    • Python Examples
  • More…
    • jQuery
    • Kotlin
    • WordPress
    • SEO
    • JSON
    • JSP
    • JSTL
    • Servlet
    • MongoDB
    • XML
    • Perl

Search Element in Doubly Linked List in Java

Last Updated: May 23, 2024 by Chaitanya Singh | Filed Under: java

In this tutorial, we will learn how to write a Java program to search an element in doubly linked list. Java Program to search an… [Read More]

Tags: Collections, Java-LinkedList

How to Insert an item in Doubly LinkedList in Java

Last Updated: May 23, 2024 by Chaitanya Singh | Filed Under: java

In this tutorial, we will learn how to insert an item in Doubly LinkedList in java at various positions. We will write a Java Program… [Read More]

Tags: Collections, Java-LinkedList

Java – LinkedList peek(), peekFirst() and peekLast() methods

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description public E peek(): Retrieves, but does not remove, the head (first element) of this list. public E peekFirst(): Retrieves, but does not remove, the… [Read More]

Tags: Collections, Java-LinkedList

Java – LinkedList poll(), pollFirst() and pollLast() methods

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Example Programs for poll(), pollFirst() and pollLast() methods of LinkedList class. LinkedList.poll() Retrieves and removes the head (first element) of this list. import java.util.LinkedList;… [Read More]

Tags: Collections, Java-LinkedList

LinkedList push() and pop() methods – Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Programs to demonstrate push and pop operations on LinkedList. LinkedList.push(E e) public void push(E e): Inserts the element at the front of the list…. [Read More]

Tags: Collections, Java-LinkedList

Adding element to front of LinkedList in Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Program to add element to front(head) of LinkedList. Program import java.util.LinkedList; class LinkedListExample { public static void main(String[] args) { // create a LinkedList… [Read More]

Tags: Collections, Java-LinkedList

Java – Get the index of last occurrence of an element in LinkedList

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Program to find out the index of last occurrence of an element in LinkedList. Program import java.util.LinkedList; class LinkedListExample { public static void main(String[]… [Read More]

Tags: Collections, Java-LinkedList

Iterate a LinkedList in reverse sequential order – java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Program to iterate a LinkedList in reverse order using descendingIterator() method of LinkedList class. Program import java.util.LinkedList; import java.util.Iterator; class LinkedListDemo { public static… [Read More]

Tags: Collections, Java-LinkedList

Clone a generic LinkedList in Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Example import java.util.LinkedList; class LinkedListClone { public static void main(String[] args) { // create a LinkedList LinkedList<String> list = new LinkedList<String>(); // Adding elements to… [Read More]

Tags: Collections, Java-LinkedList

Adding an element to LinkedList using add(E e) method – Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Program to add a new element to LinkedList using add(E e) method of LinkedList class. Example import java.util.LinkedList; class LinkedListAdd { public static void… [Read More]

Tags: Collections, Java-LinkedList

Append all the elements of a List to LinkedList – Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Description Program to add all the elements of a List to the LinkedList using addAll() method of LinkedList class. Example import java.util.ArrayList; import java.util.LinkedList; import… [Read More]

Tags: Collections, Java-LinkedList

Java – Get element from specific index of LinkedList example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In this example we are gonna see how to get an element from specific index of LinkedList using get(int index) method: public E get(int index):… [Read More]

Tags: Collections, Java-LinkedList

Java – Check if a particular element exists in LinkedList example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

In this example we are gonna see how to check if a particular element exists in LinkedList using contains() method: public boolean contains(Object o): Returns… [Read More]

Tags: Collections, Java-LinkedList

Java – Add elements at beginning and end of LinkedList example

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Example In this example we will learn how to add elements at the beginning and end of a LinkedList. We will be using addFirst() and… [Read More]

Tags: Collections, Java-LinkedList

How to convert LinkedList to array using toArray() in Java

Last Updated: September 11, 2022 by Chaitanya Singh | Filed Under: java

Converting LinkedList to array is very easy. You can convert a LinkedList of any type (such as double, String, int etc) to an array of… [Read More]

Tags: Collections, Java-Array, Java-LinkedList

  • 1
  • 2
  • Next Page »

Java Tutorial

Java Introduction

  • Java Index
  • Java Introduction
  • History of Java
  • Features of Java
  • C++ vs Java
  • JDK vs JRE vs JVM
  • JVM - Java Virtual Machine
  • First Java Program
  • Variables
  • Data Types
  • Operators

Java Flow Control

  • Java If-else
  • Java Switch-Case
  • Java For loop
  • Java while loop
  • Java do-while loop
  • Continue statement
  • break statement

Java Arrays

  • Java Arrays

OOPs Concepts

  • OOPs Concepts
  • Constructor
  • Java String
  • Static keyword
  • Inheritance
  • Types of inheritance
  • Aggregation
  • Association
  • Super Keyword
  • Method overloading
  • Method overriding
  • Overloading vs Overriding
  • Polymorphism
  • Types of polymorphism
  • Static and dynamic binding
  • Abstract class and methods
  • Interface
  • Abstract class vs interface
  • Encapsulation
  • Packages
  • Access modifiers
  • Garbage Collection
  • Inner classes
  • Static import
  • Static constructor

Java Exception Handling

  • Exception handling
  • Java try-catch
  • Java throw
  • Java throws
  • Checked and Unchecked Exceptions
  • Jav try catch finally
  • Exception Examples
  • Exception Propagation

Collections Framework

  • Collections in Java
  • Java ArrayList
  • Java LinkedList
  • Java Vector
  • Java HashSet
  • Java LinkedHashSet
  • Java TreeSet
  • Java HashMap
  • Java TreeMap
  • Java LinkedHashMap
  • Java Queue
  • Java PriorityQueue
  • Java Deque
  • Comparable interface
  • Comparator interface
  • Collections Interview Questions

MORE ...

  • Java Scanner Class
  • Java 8 Features
  • Java 9 Features
  • Java Conversion
  • Java Date
  • Java Multithreading
  • Java I/O
  • Java Serialization
  • Java Regex
  • Java AWT
  • Java Swing
  • Java Enum
  • Java Annotations
  • Java main method
  • Java Interview Q

Copyright © 2012 – 2025 BeginnersBook . Privacy Policy . Sitemap