I am working with my program and I need to remove repeated characters from a string given to me by the user. I referenced other questions, but they are all using StringBuilder to remove duplicates. However, is there any way to remove duplicates without turning the string into an array, using StringBuilder and Set?
I haven't learnt those yet, so I don't understand them very well. Could I get some help?
For example, if user types in happyrolling the result should be hapyroling.