Skip to content

Instantly share code, notes, and snippets.

@Togami-Arahi
Last active August 29, 2015 14:18
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 Togami-Arahi/afb0d7ec31f552b249d4 to your computer and use it in GitHub Desktop.
Save Togami-Arahi/afb0d7ec31f552b249d4 to your computer and use it in GitHub Desktop.
//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