Home

Life Experiences

God gives the ultimate life of every human being. In my life, lots of Struggles, Surprises, Miracles and also ups and downs. So, I don’t lose hope in the toughest situations. I thought, One day I will succeed and prove to myself in this world.

Latest from the Blog

Map in Java Collection

A Map is an object that maps keys to values. A map cannot contain duplicate keys. Each key can map to at most one value. It models the mathematical function abstraction. A map contains values on the basis of key, i.e. key and value pair. Each key and value pair is known as an entry. A Map contains unique keys. A Map is…

Java.util.Arrays.binarySearch() Method

Binary search is used to search a key element from multiple elements. Binary search is faster than linear search. In case of binary search, array elements must be in ascending order. If you have unsorted array, you can sort the array using Arrays.sort(arr) method. Arrays.binarySearch() is the simplest and most efficient method to find an element in a…

java.util.Arrays

The java.util.Arrays class contains a static factory that allows arrays to be viewed as lists.Following are the important points about Arrays − This class contains various methods for manipulating arrays (such as sorting and searching). The methods in this class throw a NullPointerException if the specified array reference is null.  Comparing arrays: For comparing arrays and slices…

Get new content delivered directly to your inbox.

Design a site like this with WordPress.com
Get started