SyntaxFix
Write A Post
Hire A Developer
Questions
Using Guava (r07) you can do this:
for(char c : Lists.charactersOf(someString)) { ... }
This has the convenience of using foreach while not copying the string to a new array. Lists.charactersOf returns a view of the string as a List.
Lists.charactersOf
List