In this tutorial, we will write a java program to check leap year using ternary operator. This program prompts user to enter a year. It… [Read More]
Check Duck Number in Java and Print these numbers in a range
A positive number that contains a zero digit is called Duck Number. The important point to note is that numbers with only leading zeroes are… [Read More]
Check Buzz Number in Java and print all numbers in a range
A number which either ends with 7 or divisible by 7 is called Buzz number. For example, 35 is a Buzz number as it is… [Read More]
Sphenic Number in Java – Check and Print all numbers in a range
A Sphenic number is a product of three distinct prime numbers. For example, 66 is a sphenic number as it is a product of 2,… [Read More]
Split String into array of Characters in Java
In this guide, we will see how to split a string into array of characters in Java. This can be archived by using this regex… [Read More]
Split String by Multiple Delimiters in Java
We learned various ways to split string in Java. In this guide, we will see how to split string by multiple delimiters in Java. Program… [Read More]
Split String by Dot (.) in Java
You can split a string by dot using the following regex inside the String.split() method. Here, we need to use double backslash before dot(.) to… [Read More]
Split String by space in Java
In this guide, we will write a program to split a string by space in Java. Java Program to split string by space You can… [Read More]
Program to Implement Merge Sort in Java
In this guide, you will learn how to implement merge sort algorithm in Java. What is a Merge Sort in Java? Merge sort algorithm is… [Read More]
Java Program to remove all the white spaces from a string
In this tutorial, you will learn how to write a java program to remove all the whitespaces from a string. To do that we are… [Read More]
Java Program to find the longest repeating sequence in a string
In this tutorial, you will learn how to write a java program to find the longest repeating sequence in a string. For example, if the… [Read More]
Java Program to find longest substring without repeating characters
In this tutorial, you will learn how to write a java program to find longest substring without repeating characters. For example, if a string is… [Read More]
Java Program to find all subsets of a string
In this article, you will learn how to write a java program to find all subsets of a String. If the number of characters in… [Read More]
Java Program to divide a String in ‘n’ equal parts
In this article, we will write a java program to divide a string in ‘n’ equal parts. There are few things which we need to… [Read More]
Java Program to Check two Strings are anagram or not
Anagram of a string is another string with the same characters but order of the characters can be different. For example, Two strings “Listen” and… [Read More]
- 1
- 2
- 3
- …
- 9
- Next Page »