Sort an array of strings according to string lengths using Map
Given an array of strings, we need to sort the array in increasing order of string lengths, using Map Data Structure. Examples: Input: str[] =… Read More »
Given an array of strings, we need to sort the array in increasing order of string lengths, using Map Data Structure. Examples: Input: str[] =… Read More »
We have learnt about Generic class in Java. We can also use them to code for Graph in Java. The Graph Class is implemented using… Read More »
Pre-requisite: Hamming code Hamming code is a set of error-correction codes that can be used to detect and correct the errors that can occur when… Read More »
Given a string str consisting of a sentence, the task is to find the count of words in the given sentence that end with the… Read More »
A right wedge is a wedge with parallel side triangles. It have two side bases a and b, top edges e and height h. The… Read More »
Prerequisites: Java Collections, Java Array List, Comparator Interface in Java Given a list object containing multiple records, our task is to perform SQL group by… Read More »
The IT industry, especially in India, heavily uses Java in most of their projects. Being a Java developer, one should have the knowledge about the… Read More »
Given a string, the task is to convert this string into a character array in Java. Examples: Input: Hello World Output: [H, e, l, l,… Read More »
Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »
Given a string and a character, the task is to make a function which counts the occurrence of the given character in the string using… Read More »
The java.math.BigDecimal.sqrt(MathContext mc) is an inbuilt function added in Java SE 9 & JDK 9 which returns BigDecimal value of square root of a BigDecimal… Read More »
In this article, we shall be animating the applet window with a 1-second delay. The idea is to display the system time of every instance.… Read More »
Iterator Iterators are used in Collection framework in Java to retrieve elements one by one. It can be applied to any Collection object. By using… Read More »
Prerequisite : Graph and its representations In this article, we will be discussing Adjacency List representation of Graph using ArrayList in Java. Following is adjacency… Read More »
So far the operations using Java programs are done on a prompt/terminal which is not stored anywhere. But in the software industry, most of the… Read More »