Created
April 5, 2015 02:05
-
-
Save zhensongren/a97c9526a8cb67811c29 to your computer and use it in GitHub Desktop.
CareerCup 1.2
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
//CareerCup 1.2 Reverse a string by StringBuilder. | |
class StringReverse { | |
public static void main(String args[]) { | |
System.out.println("before: " + args[0]); | |
String s = new StringBuilder(args[0]).reverse().toString(); | |
System.out.println("after: " + s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment