This content has been marked as final. Show 5 replies
How do you define prefixes and suffixes in this context, what do they look like? You should provide an example to get a decent reply.
What do you mean by "prefixes and suffixes"? And by "prefixes and suffixes of a user string entered by user", do you mean that both the string and the prefixes and suffixes are entered by the user?
for example user enters string "javafundamentals",then it's prefixes would be:
and so on
also the suffixes of the above string are
and so on...
try using substring method to get your prefix or suffix, which i think in your case is not defined