Last active
August 29, 2015 14:18
-
-
Save Togami-Arahi/afb0d7ec31f552b249d4 to your computer and use it in GitHub Desktop.
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
//http://simplesandsamples.com/reverse.java.htmlからコピペ | |
import java.io.*; | |
import java.util.*; | |
class ReverseString{ //TestをReverseStringに改変 | |
public static void main(String[] args) { | |
String src = "stressed"; | |
StringBuffer sb = new StringBuffer(src); | |
String dst = sb.reverse().toString(); | |
System.out.println(""+dst); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment