I have a problem where I need to output whether or not a user inputted string has duplicate sets of characters in the suffix and prefix positions within the string, if it does I must print out "ok".
if the user inputs "ermarf" it would print "not ok"
My question is how do I code this. I thought using CharSequence() method would work; but with that you would have to indicate what specific characters to look for, and that wont work for what I'm trying to do; any suggestions?