public class ReverseStr {
public void reverseString(char[] s) {
int len = s.length;
if (len == 0) return;
for (int i = 0; i < len / 2; i++){
char temp = s[i];
s[i] = s[len-i-1];
s[len-i-1] = temp;
}
}
}