Skip to content

Category Archives: Java Programs

Given a number n as input, we need to print its table, where N>0. ExampleAttention reader! Don’t stop learning now. Get hold of all the… Read More
The ArrayDeque in Java provides how to use resizable-array additionally to the implementation of the Deque interface. It is also referred to as Array Double… Read More
Vector is similar to arrays but is growable also, or we can say no fixed size is required. Previously vector was a part of legacy… Read More
ArrayList is a part of collection framework and is present in java.util package. It provides us with dynamic arrays in Java. Though, it may be… Read More
We are given two sorted List and our goal is to merge these two lists into a new list. For that, we have to write… Read More
TreeSet is one of the most important implementations of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements… Read More
Hashing is a technique that is used to uniquely identify a specific object from a group of similar objects. Suppose an object is to be… Read More
Valid attribute names are case-insensitive, and they are restricted to the ASCII characters in the set of  [0-9,a-z, A-Z_-], and cannot be exceeded over 70… Read More
An undirected graph is graph, i.e, a set of objects (called vertices or nodes) that are connected together, where all the edges are bidirectional. An… Read More
Concatenating two lists means merging two lists into a single list. Consider the given lists:Attention reader! Don’t stop learning now. Get hold of all the… Read More
TreeSet is an implementation of the SortedSet interface in Java that uses a Tree for storage. The ordering of the elements is maintained by a… Read More
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as to the… Read More
The ConcurrentLinkedQueue class in Java is a part of the Java Collection Framework. It belongs to java.util.concurrent package. It was introduced in JDK 1.5. It… Read More
The grouping of objects in a single unit is called a collection. For example Array, Lists, Hashsets, etc.  Data can be added from a specified… Read More
Converting String to ArrayList means each character of the string is added as a separator character element in the ArrayList. Example:Attention reader! Don’t stop learning… Read More

Start Your Coding Journey Now!