package
liaojiyong.net.blogjava;
public
class
ReverseString {
static
StringBuffer
sb
=
new
StringBuffer();
ReverseString(String s) {
for
(
int
i = s.length() - 1; i >= 0; i--)
sb
.append(s.charAt(i));
System.
out
.println(
sb
);
}
public
static
void
main(String[] args) {
new
ReverseString(
"abcdefgsdjoiwedfsdlksd321"
);
}
}