Skip to content

Category Archives: Java Programs

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
Inner class is a member of another class which is basically a non-static nested class i.e. if a class is inside another class and is… Read More
ListIterator.remove() method removes the last element from the list that was returned by next() or previous() cursor positions. It can be called only once per… Read More
In order to deal with JDBC standard 7 steps are supposed to be followed: Import the database Load and register drivers Create a connection Create… Read More
Linear Congruential Method is a class of Pseudo-Random Number Generator (PRNG) algorithms used for generating sequences of random-like numbers in a specific range. This method… Read More
Java Database Connectivity or JDBC is a Java API (application programming interface) used to perform database operations through Java application. It allows the execution of… Read More
Park–Miller random number generator is also known as Lehmer random number generator. A general formula of a random number generator (RNG) of this type is,… Read More
Harmonic series is the inverse of an arithmetic progression. In general, the terms in a harmonic progression can be denoted as h1 = 1/a,  h2… Read More

Start Your Coding Journey Now!