- Reverse a String 1
- Reverse Each Word
- Reverse a Sentence
- Palindrome
- Find Words
- CountIng Search
- Unique Characters
-
Java Sandwich - Anagrams 1
- Anagrams 2
- Counting Search 2
Java String Resources:
Unique Characters
Collapse Content
Show Content
The King of Zumbania passed a new law: No one's name can contain duplicate characters. As the Royal Developer, you are tasked with writing a program to enforce this rule.
Create a program that checks if a given name has duplicate characters. Uppercase and lowercase letters are considered duplicates of each other. The names will not contain any spaces. (Optimization is optional.)
Challenge
Create a program that prints true
if a name has duplicate characters and false
otherwise.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.
Comments
thales
Jul 23, 7:52 AMa solution:
my code