A dupledrome is a
word that contains only double letters, like “llaammaa” or “ssaabb”. I conjecture that there are no dupledromes in common English use. To
test that conjecture, I would like a program that reads words from the dictionary one at a time and checks them for dupledromity.
Write a method called isDupledrome that takes a
String and returns a boolean indicating whether the word is a dupledrome.
I have written this code, where int i will count characters at odd number and int j will count characters at even number and comparing them will give answer wether the word is dupledrome or not..please complete this code.