Posts from Java

Maximum Coin Spend Problem using Dynamic Programming in Java

By divyesh srivastava

In this Java tutorial, We are going to discuss Maximum coin Problem using DP. In the problem, we are provided with two input arrays of n values in which one array consists of dista.... Read More

How to find Maximum Pairwise Product in Java using Naive approach

By Saurabh Singh

In this Java tutorial, we will learn how to find the maximum pairwise product using Java. Maximum Pairwise Product in easy words you can say that it is the product of those two num.... Read More

Frequency of Repeated words in a string in Java

By Saurabh Singh

In this Java tutorial, we are going to find the frequency of the repeated words in Java. In order to do this, we have taken a sentence and split it into strings and compare each st.... Read More

Working with HashMap (Insertion, Deletion, Iteration) in Java

By vikrant_tomar

In this Java tutorial, we will learn working with HashMap in Java. A map is an object that stores information as a key- value pair. Given a key, we can find its value. Key and valu.... Read More

Java solution to maximize the chances of winning in Monty-Hall Paradox Problem

By divyesh srivastava

In this Java Tutorial, we are going to solve the maximum chance of winning the famous Monty-Hall Paradox Problem in Java. Maximize the chances of winning in Monty Hall Paradox in J.... Read More

Converting first letter of each word in a sentence to upper case in Java

By divyesh srivastava

In this Java tutorial, we are going to convert first letter of each word to upper case in Java in a given sentence. In order to do this we have taken an input string “strR.... Read More

How to remove non-alphabetical characters from a string in JAVA

By divyesh srivastava

In this Java tutorial, we will learn how to remove non-alphabetical characters from a string in Java. You can also say that print only alphabetical characters from a string in Java.... Read More

Factorial of a large number using BigInteger in Java

By vikrant_tomar

To calculate the factorial of a large number in Java we are going to use BigInteger. For the easy understanding, we have provided an easy example. BigInteger class in Java is used .... Read More