collections
-
Core Java
Delete Duplicate Values From HashMap in Java
HashMap in Java programming is a widely used data structure that allows application developers to store and manage key-value pairs…
Read More » -
Core Java
Tree Map in Java
1. Introduction A Tree Map is a red-black tree-based NavigableMap implementation. A NavigableMap is a SortedMap with some navigation methods…
Read More » -
Collections
Swap List elements example
This is an example of how to swap a List’s elements . We are using the swap(List list, int i,…
Read More » -
Collections
Shuffle List elements example
In this example we shall show you how to shuffle a List’s elements. This is provided by the shuffle(List list)…
Read More » -
Collections
Reverse order of List example
With this example we are going to demonstrate how to reverse the order of a List. This is provided by…
Read More » -
Collections
Replace specific element of List example
This is an example of how to replace a specific element of a List. We will use the replaceAll(List list,…
Read More » -
Collections
Replace all elements of List example
In this example we shall show you how to replace all elements of a List. We will use the fill(List…
Read More » -
Collections
Binary search List example
With this example we are going to demonstrate how to Binary search a List. We will use the binarySearch(List list,…
Read More » -
Collections
Get unmodifiable Collection
This is an example of how to get an unmodifiable Collection. The same API applies to any type of Collection…
Read More »
- 1
- 2