If I have a string, for example “Tiger,” what could I write that would return T + i + g + e + r? It would be nice if I could put each letter inside of an array.
I need this because I’m writing a program that analyzes an inputted string and determines how many times repeated letters occur.
Try String.split() method with empty delimeter: