Author: codebun

Write a java program to find an Unique Number.

Write a program that accepts an Integer as input and finds whether the number is Unique or not. Print Unique if the number is “Unique”, else print “Not Unique”. 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

Write a java program to shrink a name.

Write a program that accepts a string as input and converts the first two names into dot-separated initials and print the output. Input string format is ‘fn mn ln’.   Output string format is ‘ln [mn’s 1st character].[fn’s 1st character]’ Input and Output Format: Input consists of a string. The output consists of a String. Refer sample output