simple java programs for beginners

Unique Digits Count in Java

Unique Digits Count in Java | Write a Java program to count the unique digits in the given number. For example, if the given number is 01230312 then the total number of unique digits is 4. To develop this Java program, we have to take the help of an array or collection. First, we develop […]

Unique Digits Count in Java Read More »

ISBN Number in Java

ISBN understands for International Standard Book Number, which is used to identify a book. In this post, we will write a Java program to check whether the given number is a valid ISBN number or not? From 1970 to the end of December 2006, It is a 10 digit number, but since 1 January 2007

ISBN Number in Java Read More »

Nelson Number Program in Java

In this post, we will develop a Java program to check whether the given number is a Nelson Number or not? In cricket, the number 111 is sometimes called “a Nelson” after Admiral Nelson, who allegedly only had “One Eye, One Arm, One Leg” near the end of his life. This is, in fact inaccurate—Nelson

Nelson Number Program in Java Read More »

Fascinating Number in Java

In this post, we will develop a Java program to check whether the given number is a Fascinating Number or not? We will also develop a Java program to find all fascinating numbers between two given numbers. A number is called a fascinating number if it is (having at least 3 digits) multiplied by 2

Fascinating Number in Java Read More »

Unique Number in Java

In this post, we will develop a Java program to check whether the given number is a unique number or not. A number that doesn’t have any duplicate digits is called a unique number. For example:- 123, 7158, 98547 are unique numbers, but 1111, 1233, 514425 are not unique numbers because they have one digit

Unique Number in Java Read More »

Disarium Number in Java

In this post we will develop a Java program to check whether the given number is a Disarium number or not? We will also develop a Java program to find all the Disarium numbers in the given range. A number whose sum of its digits powered with their respective position is equal to the original

Disarium Number in Java Read More »

Spy Number in Java

In this post, we will develop a Java program to check whether the given number is a spy number or not? We will also develop a Java program to find all the spy number exist in between two given numbers. A number whose sum of the digits of is equal to the product of its

Spy Number in Java Read More »