Skip to content

Category Archives: Java Programs

Here we are converting a string into a primitive datatype. It is recommended to have good knowledge of Wrapper classes and concepts like autoboxing and… 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 that 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: GeekS… 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 Fibonacci series using Command Line Arguments. The Fibonacci numbers are the numbers in the following… Read More
Given a number, the task is to find the Factorial of this number using Command Line Arguments. Factorial of a non-negative integer is the multiplication… Read More
Given two numbers, the task is to find the average of two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20… Read More

Start Your Coding Journey Now!