Note: A Unique number is a positive integer (without leading zeros) with no duplicate digits.
For example 7, 135, 214 are all unique numbers whereas 33, 3121, 300 are not.
import static java.lang.System.out;
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Unique
{
public static void main(String...alt)throws Exception
{
int flag=0;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
out.print("Enter a Number : ");
String n=br.readLine();
label:
for(int i=0;i
RECENTLY MOST VIEWS
MOST POPULAR
-
Note: A number will be called DISARIUM if sum of its digits powered with their respective position is equal to the original number. For e...
-
The International Mobile Station Equipment Identity(IMEI) is a number, usually unique, to identify mobile phones, as well as some satellit...
-
Harshad Number : In recreational mathematics, a Harshad number (or Niven number), is an integer (in base 10) that is divisible by the sum ...
-
package com.altafjava.sln.test; public class SecondLargestNumber { public static void main(String[] args) { int[] arr={5,20,8,1...
-
package com.fdcis.test; /** * How to find duplicate characters in a string in java? * */ public class Test { public static v...
Blog Archive
-
▼
2017
(60)
-
▼
February
(60)
- Jdbc Program to retrieve all data from 'emp' table...
- Jdbc Program to update column data of 'emp' table .
- Jdbc Program to insert data in 'emp' table in Orac...
- Jdbc Program to drop 'emp' table by using type-4 d...
- Jdbc Program to create table 'emp' in oracle datab...
- Jdbc Program to retrieve all data from 'emp' table...
- Jdbc Program to update column data on 'emp' table.
- Jdbc Program to insert data in 'emp' table in Orac...
- Jdbc Program to drop the 'emp' table.
- Jdbc Program to create a table 'emp' in Oracle dat...
- Java Program to sort List(LinkedList) Elements in ...
- Java Program to sort List(ArrayList) Elements in a...
- Java program to sort in descending order of user d...
- Java program to sort in ascending order of user de...
- Java Program to sort Object/Double Array Elements ...
- Java Program to sort Object/Integer Array Elements...
- Java Program to sort primitive Array Elements in A...
- Java Program to sort Object/String class elements ...
- Java Program to sort Object/String class elements ...
- Java Program to sort primitive Array Elements with...
- Java Program to push StringBuffer object elements ...
- Java Program to search an element in List(Vector).
- Java Program to search an element in an Object/Str...
- Java Program to search an element in an Object/Str...
- Java Program to search an element in a primitive A...
- Java Program to search an element in a primitive A...
- Java Program to search an element in an String/Obj...
- Java Program to search an element in a Double/Obje...
- WAP to enter an string and reverse it.
- Java program to enter an string and reverse it
- Java program to enter an string and reverse it.
- Java Program to insert element in List and print i...
- Java program to swap two numbers without using tem...
- Write a Program in Java to input a number and chec...
- Java Program to insert an image in Oracle database
- Java Program to print & count all prime number bet...
- Java Program to enter a number & check whether it ...
- Write a Java Program to display all Harshad /Niven...
- Write a Java Program to all Keith Number between 1...
- Write a Program in Java to input a number and chec...
- Write a Program in Java to show all Kaprekar numbe...
- Write a Program in Java to input a number and chec...
- Write a java program to all valid IMEI no(15 digit...
- Write a program in Java to input the first 14 digi...
- Write a java program to input an IMEI no(15 digit)...
- Write a Java Program which takes a number and chec...
- Write a java program to generate Fibonacci Series ...
- Write a java program to take a number and check wh...
- WAP to find out duplicate value all duplication in...
- WAP to find out duplicate value all duplication in...
- WAP to enter a number and check whether the number...
- Java program to find common elements in two arrays.
- Java Program to check whether the Operating System...
- Java Program to convert Array to List.
- Write a Java Program to display all Duck Number be...
- Write a Program in Java to input a number and chec...
- Java Program to print total Armstrong no between 1...
- Java Program to check a number whether it is an ar...
- Write a Java Program to display all Disarium Numbe...
- Write a Java Program which takes an input and chec...
-
▼
February
(60)
About
Hello ALTAF
All Java Interview Programs
check-unique-no
Write a Program in Java to input a number and check whether it is a Unique Number or not.
Sunday, February 12, 2017
Subscribe to:
Post Comments (Atom)
Program List
- armstrong
- char-occurrances
- check-anagram
- check-duck-no
- check-duplicate-no
- check-endianess-of-os
- check-equality-of-two-arrays
- check-fibonacci-series
- check-harshad-no
- check-kaprekar
- check-keith-no
- check-niven-no
- check-palindrome
- check-prime
- check-prime-no
- check-substring
- check-unique-no
- check-valid-imei
- convert-array-to-list
- convert-string-to-int
- count-duplicate-char-in-string
- count-occurrences-char-of-string
- create-immutable-class
- disarium
- filter-number
- find-1st-non-repeat-char
- find-common-no-in-array
- find-duplicate-char-in-string
- find-duplicate-no-in-array
- find-largest-no-less-than-given-no
- find-palindrome
- find-second-largest-number
- image-store-in-database
- jdbc-program
- number-pyramid-pattern
- numeric-pattern
- remove-duplicate-in-string-array
- remove-white-space-of-string
- reverse-list
- reverse-string
- search-element-in-array
- search-list
- sorting-array
- sorting-list
- sorting-user-defined-object
- string-reverse
- sum-of-all-digits
- swap-2-no
- view-system-properties
0 Comment to "Write a Program in Java to input a number and check whether it is a Unique Number or not."
Post a Comment