How to implement SQL GROUP BY in Java?
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 »
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 »
Given two strings str1 and str2. The task is to check if the two given strings are same if a case-insensitive comparison is followed, i.e.,… Read More »
Given the string, the task is to capitalise the first and last character of each word in a string. Examples: Input: Geeks for geeks Output:… Read More »
Given a number, the task is to check if this number is Armstrong or not using Command Line Arguments. A positive integer of n digits… Read More »
Given a number, the task is to check if this number is Odd or Even using Command Line Arguments. A number is called even if… Read More »
Given a number ‘n’, the task is to print the the Fibonacci series using Command Line Arguments. The Fibonacci numbers are the numbers in the… Read More »