Skip to content

Instantly share code, notes, and snippets.

@skamille
Created May 17, 2014 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skamille/a0fc2103a44080896aa0 to your computer and use it in GitHub Desktop.
Save skamille/a0fc2103a44080896aa0 to your computer and use it in GitHub Desktop.
how I would do this
List<String> list = Lists.newArrayList("sweet", "baby", "jesus");
List<String> reversed = Lists.newArrayList();
for(String item: list) {
String reversedString = new StringBuilder(item).reverse().toString();
reversed.add(reversedString);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment