1. Overview In this article, we will see how to add all the elements of an array. For example we will use int[] array. Embed […]
Search for a value in an array
1. Overview In this article, we will see how to search for a value in an array. For example we will use int[] array. Embed […]
Java Collections Core Interfaces
Diagram built in BlueJ The core collection interfaces encapsulate different collections such as List, Set, Queue and Deque. Collections operate on generics. Collection Interface declaration […]
Search for a value in Object[] array
1. Overview In this article, we will see how to search for an object in an Object[] array. For example we will use String[] array. […]
Convert Iterator to Collection
1. Overview In this article I will write about converting an Iterator to Collection. Let us begin. Embed from Getty Images 2. Content Below are […]
Testing Optional Return Type
1. Introduction In this article I will discuss how to assert an Optional. I have written a series of articles on Optional, which includes introduction, […]
Bridge between Array and Collection APIs
1. Overview Generally speaking, container is an object such as box which can be used to hold something. In programming container means the same thing. […]
Java Collections and its benefits
Collections aka containers are used to group objects into single entity. Once the objects are stored in a collection you can then perform operations on […]
How to use Boolean class Java 8 methods in Stream API
1. Introduction In this article, we will be go through the new methods added in Boolean class under package java.lang. Boolean class wraps up the […]
Convert array to List
1. Introduction In this article we will see how to convert an array i.e. primitive and object array to List. The following methods acts as […]