题目链接:https://leetcode-cn.com/problems/reverse-string/
题目如下:
class Solution {
public void reverseString(char[] s) {
int i,len=s.length;
Character ch;
for(i=0;i<len/2;i++){
ch=s[i];
s[i]=s[len-i-1];
s[len-i-1]=ch;
}
}
}