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

Archives for 2014

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

Java – Convert a LinkedList to ArrayList

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

Example In this example we are converting a LinkedList to ArrayList. We have a LinkedList of Strings in which we are storing names of 5… [Read More]

Tags: Collections, Java-ArrayList, Java-LinkedList

Java – Get first and last elements from LinkedList example

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

In this tutorial we will see an example on how to get first and last element from LinkedList. Example Here we have a LinkedList of… [Read More]

Tags: Collections, Java-LinkedList

Java – Get sub List from LinkedList example

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

Example In this example, we are getting a sublist of LinkedList using subList(int startIndex, int endIndex) method of LinkedList class. It returns a List between… [Read More]

Tags: Collections, Java-LinkedList

Java – Add element at specific index in LinkedList example

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

In this tutorial we will learn how to add a new element at specific index in LinkedList. We will be using add(int index, Element E)… [Read More]

Tags: Collections, Java-LinkedList

Java – LinkedList Iterator example

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

In the last post we learnt how to traverse a LinkedList using ListIterator. Here we will learn how to iterate a LinkedList using Iterator. Example… [Read More]

Tags: Collections, Java-LinkedList

Java – LinkedList ListIterator example

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

In this example we will see how to iterate a LinkedList using ListIterator. Using Listterator we can iterate the list in both the directions(forward and… [Read More]

Tags: Collections, Java-LinkedList

Java – Remove all elements from LinkedList example

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

In this example we will see how to remove all the elements from LinkedList. We will be using clear() method of LinkedList class to do… [Read More]

Tags: Collections, Java-LinkedList

Java – Remove first and last element from LinkedList example

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

In this tutorial we will learn how to remove First and Last elements from LinkedList. In the few last posts we shared following tutorials: 1)… [Read More]

Tags: Collections, Java-LinkedList

Java – Remove specific elements from LinkedList example

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

In the last post we shared a tutorial on how to remove a element from specific index in LinkedList. Here we will learn how to… [Read More]

Tags: Collections, Java-LinkedList

Java – Remove element from a specific index in LinkedList example

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

In this example, we are gonna see how to remove an element from LinkedList. Example We will be using remove(int index) method of LinkedList class… [Read More]

Tags: Collections, Java-LinkedList

Java – Replace an element in a LinkedList with example

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

In this article, we will learn how to replace an element in linked list using set() method. This method is especially useful when we need… [Read More]

Tags: Collections, Java-LinkedList

  • « Previous Page
  • 1
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • 16
  • 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