Skip to content

Category Archives: Java Programs

The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained… Read More
In HashSet, duplicates are not allowed. If we are trying to insert duplicates then we won’t get any compile-time or runtime error and the add()… Read More
HashMap is similar to the HashTable, but it is unsynchronized. It allows to store the null keys as well, but there should be only one… Read More
Binary Code of a number is the representation of a number in Binary (base-2) number system. In Binary Number System, each number is expressed using… Read More
Complex numbers are numbers that consist of two parts — a real number and an imaginary number. Complex numbers are the building blocks of more… Read More
The minimum value is the one with the smallest value and the maximum value is the one with the largest value. The main task here… Read More
The Bitap Algorithm is an approximate string matching algorithm. The algorithm tells whether a given text contains a substring which is “approximately equal” to a… Read More
Java ArrayList class uses a dynamic array for storing the elements. It is like an array, but there is no size limit. We can add… Read More
The Vector class implements a growable array of objects. It is available in java.util package. It implements the List interface. The Enumeration interface defines the… Read More
The TreeMap in Java is used to implement Map interface and NavigableMap along with the AbstractMap Class. The map is sorted according to the natural… Read More
In this article, we will learn how to add an element to ArrayList using ListIterator. The ListIterator is used to return a list iterator over… Read More
OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. The library has more than 2500 optimized algorithms, which… Read More
The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained… Read More
ArrayList is a class under the collections framework of java. It is present in java.util package. An ArrayList is a re-sizable array in java i.e.,… Read More
In simplest terms, truncation means to chop off the decimal portion of a number. A method of approximating a decimal number by dropping all decimal… Read More

Start Your Coding Journey Now!