SyntaxFix
Write A Post
Hire A Developer
Questions
Use Java 8's removeIf(),
To remove safely,
letters.removeIf(x -> !x.equals("A"));