Question: please use java language A word is said to be a doubloon if every letter that appears in the word appears exactly twice. Here are
please use java language
A word is said to be a doubloon if every letter that appears in the word appears exactly twice. Here are some example doubloons found in the dictionary:
Abba, Anna, appall, appearer, appeases, arraigning, beriberi, bilabial, boob, Caucasus, coco, Dada, deed, Emmett, Hannah, horseshoer, intestines, Isis, mama, Mimi, murmur, noon, Otto, papa, peep, reappear, redder, sees, Shanghaiings, Toto
Write a program which takes a String as input and checks whether it is a doubloon. If it is, your program should output Doubloon! If not, it should output Not a doubloon! To ignore case, invoke the toLowerCase method before checking.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
