Created
May 17, 2014 00:13
-
-
Save skamille/a0fc2103a44080896aa0 to your computer and use it in GitHub Desktop.
how I would do this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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