Posts from Java

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

Sorting a list of objects of user-defined class using Comparator interface

By vikrant_tomar

Sorting is vital in every aspect of programming. The java.util.Collections.sort() function can be used to sort the elements of a list of a predefined data type. The Comparator inte.... Read More

How to concatenate byte array in java with an easy example

By Saruque Ahamed Mollick

In this Java tutorial, We will learn how easily we can concatenate multiple byte array in Java. That’s mean you can concatenate two or more byte array in Java easily. In orde.... Read More

How to convert list to int array in Java

By Saruque Ahamed Mollick

In this Java tutorial, we will learn how to convert list to int array in Java. In order to make it understandable and simple, we will create a list and some elements in it. Then we.... Read More

Username Validation using Java as per Client’s Requirement

By Priyam Sur

In this Java programming tutorial, we will learn how to validate a username. For making it easy we have provided an easy example of username validation using Java. USERNAME VALIDAT.... Read More

Related Posts