Author Archive


How to Check if Two Words are Anagrams in Java

Permutations of a word are generated by shuffling the letters in the word. The full set consists of all permutations of the letters in a word. However only a subset of these are valid words in English language. These valid word combinations of letters is known as the Anagram for the original word and vice […]

How to Find Sum of Digits of a Number in Java

The following Java program computes the sum of digits of a number. For example, if the input is 278, the output is calculated as 2+7+8 = 17. This function is useful in a number of numeric algorithms. For example,  IMEI check sum algorithm requires calculation of sum of digits. This problem is also given as […]

Spring Boot Quartz Scheduler Integration

Configuring quartz scheduler in a spring boot application requires a number of steps. This tutorial assumes that you already have a simple spring boot application up and running. Please see this tutorial on developing spring boot applications with spring tool suite if you are not familiar with setting up a simple spring boot application. The […]

Fascinating Number in Java

What is a Fascinating Number? Fascinating numbers are 3 digit numbers with a unique property. When a 3 digit number is concatenated with the number multiplied by 2 and the number multiplied by 3, sometimes we get a number which contains all the digits from 1 to 9 exactly once. There could be any number […]

Keith Number Program in Java

Keith numbers are rare numbers with a Fibonacci like property. An n-digit number with value N is a Keith number if N is part of the Keith series generated. This series starts with the n digits of the number N. Then the subsequent numbers in the series are found by calculating the sum of preceding […]