I am thinking about using String.replaceAll()
to remove certain characters in my string. It is unclear which characters are going to be removed (i.e. which char
The Guava method is interesting, though I'm not sure why they use the "spread" variable. Since they use that, a subtraction operation is needed for each shift. I benchmarked a few versions (including a simple hand coded shifter) and you can find the writeup here :
http://thushw.blogspot.com/2013/06/java-remove-specified-characters-from.html