## Java Program to find Product of unique prime factors of a number

Given a number n, we need to find the product of all of its unique prime factors. Prime factors: It is basically a factor of… Read More »

## Java Program for Number of jump required of given length to reach a point of form (d, 0) from origin in 2D plane

Given three positive integers a, b and d. You are currently at origin (0, 0) on infinite 2D coordinate plane. You are allowed to jump… Read More »

## Print distinct sorted permutations with duplicates allowed in input

Write a program to print all distinct permutations of a given string in sorted order. Note that the input string may contain duplicate characters. In… Read More »

## Swap corner words and reverse middle characters

Write a Java program to take an input string and exchange the first and last word and revers the middle word. Examples: Input : Hello… Read More »

## Java Program to check whether it is possible to make a divisible by 3 number using all digits in an array

Given an array of integers, the task is to find whether it’s possible to construct an integer using all the digits of these numbers such… Read More »

## Java Program to Find sum of even factors of a number

Given a number n, the task is to find the even factor sum of a number. Examples: Input : 30 Output : 48 Even dividers… Read More »

## Java Program to Check if all digits of a number divide it

Given a number n, find whether all digits of n divide it or not. Examples: Input : 128 Output : Yes 128 % 1 ==… Read More »

## Java Program for Find the perimeter of a cylinder

Given diameter and height, find the perimeter of a cylinder. Perimeter is the length of the outline of a two – dimensional shape. A cylinder… Read More »

## Java Program to Find remainder of array multiplication divided by n

Given multiple numbers and a number n, the task is to print the remainder after multiply all the number divide by n. Examples: Input :… Read More »

## Java Program for focal length of a spherical mirror

Focal length is the distance between the center of the mirror to the principal foci. In order to determine the focal length of a spherical… Read More »

## Program for Find sum of odd factors of a number

Given a number n, the task is to find the odd factor sum. Examples: Input : n = 30 Output : 24 Odd dividers sum… Read More »

## Java program to count the characters in each word in a given sentence

Write a Java program to count the characters in each word in a given sentence? Examples: Input : geeks for geeks Output : geeks->5 for->3… Read More »

## Java program to swap first and last characters of words in a sentence

Write a Java Program to Swap first and last character of words in a Sentence as mentioned in the example? Examples: Input : geeks for… Read More »

## Java Program to take Screenshots

In this program we will see how we can take screenshots using a java program and save the screenshot in desired folder. We use java.awt.Robot… Read More »

## Standard Normal Distribution (SND) – Java Program

The standard normal distribution is a special case of the normal distribution. It occurs when a normal random variable has a mean of 0 and… Read More »