How to remove duplicates from string(not array) without using
stringbuilder?(java)
I am working with my program and i need to remove repeated words from
string, which is typed by user. I referenced other questions, but they are
all using stringbuilder to remove duplicates. But, is there any way to
remove duplicates without altering string to array , using stringbuilder
and set ? I haven't learnt those concepts, so it is hardly understandable
for me. Help me.
For example, if user types in "happyrolling" the result should be
"hapyroling".
No comments:
Post a Comment