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

Convert Integer List to int Array in Java

By Chaitanya Singh | Filed Under: java

In this guide, we will see how to convert Integer List to int Array in Java. There are several ways, you can do this conversion,… [Read More]

Convert a Set of String to a comma separated String in Java

By Chaitanya Singh | Filed Under: java

Problem description: We have given a Set that contains String elements. Our task is to convert this set of string to a comma separated string… [Read More]

How to Convert ArrayList to HashSet in Java

By Chaitanya Singh | Filed Under: java

There are several ways to convert ArrayList to HashSet. In this guide, we will discuss the following ways with examples: Passing ArrayList to constructor of… [Read More]

Convert Comma Separated String to HashSet in Java

By Chaitanya Singh | Filed Under: java

In this guide, we will discuss, how to convert a comma separated string to HashSet in Java. We will be using the String split() method… [Read More]

When to use ArrayList and LinkedList in Java

By Chaitanya Singh | Filed Under: java

In this guide, we will discuss, when to use ArrayList and when to use LinkedList in Java. There are multiple similarities between these classes. However… [Read More]

How to Increase the capacity of ArrayList

By Chaitanya Singh | Filed Under: java

When we create an ArrayList in Java, it is created with a default capacity of 10. However an ArrayList can be automatically resized if more… [Read More]

Perform Binary Search on ArrayList in Java

By Chaitanya Singh | Filed Under: java

In this tutorial, you will learn how to perform binary search on ArrayList in Java. 1. Perform binary search on ArrayList using Collections.binarySearch() In this… [Read More]

Add Multiple Items to an ArrayList in Java

By Chaitanya Singh | Filed Under: java

In this tutorial, you will learn how to add multiple items to an ArrayList in Java. 1. Add multiple items using adAll() method The addAll()… [Read More]

Difference between Array and ArrayList

By Chaitanya Singh | Filed Under: java

In this guide, we will discuss the difference between Array and ArrayList. What is an Array? An array is a collection of elements of similar… [Read More]

Difference between length of Array and size of ArrayList in Java

By Chaitanya Singh | Filed Under: java

In this tutorial, you will learn the difference between length of Array and size of ArrayList in Java.. Length of Array: // creating an array… [Read More]

How to make an ArrayList read only in Java

By Chaitanya Singh | Filed Under: java

A read only ArrayList means that no modification operations is allowed to be performed on ArrayList. This list cannot be modified by adding, removing or… [Read More]

Deque Interface in Java Collections

By Chaitanya Singh | Filed Under: java

Deque is a Queue in which you can add and remove elements from both sides. In the Java Queue tutorial we have seen that the… [Read More]

PriorityQueue Interface in Java Collections

By Chaitanya Singh | Filed Under: java

In the last tutorial, we have seen how a Queue serves the requests based on FIFO(First in First out). Now the question is: What if… [Read More]

Queue Interface in Java Collections

By Chaitanya Singh | Filed Under: java

A Queue is designed in such a way so that the elements added to it are placed at the end of Queue and removed from… [Read More]

Comparator Interface in Java

By Chaitanya Singh | Filed Under: java

In the last tutorial, we have seen how to sort objects of a custom class using Comparable interface. By using Comparable we can sort the… [Read More]

  • 1
  • 2
  • 3
  • …
  • 10
  • Next Page »

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap