+ 2
How to find a single words in a String ?
Like as Input :- rarad Output :- d Input raraddmk Output mk
3 Antworten
+ 5
you can make a loop for each letter index in input, and inside it another loop for iterating over each letter of input(except index of character outer loop) if same character found then break; else when reach last index in inner loop just print that character
+ 1
1. Turn the string into an array.
2. Iterate through the character array and find the characters you need.
3. If it's a single character (like your 1st example), print them directly. Concat multiple characters (like your 2nd example) using +""+ when printing.