Difficulty: Easy
leetcode url:https://leetcode.com/problems/reverse-string/
public String reverseString(String s) {
if(s.equals("")) return s;
char[] sc=s.toCharArray();
char t;
for(int i=0;i<sc.length/2;i++){
t=sc[i];
sc[i]=sc[sc.length-i-1];
sc[sc.length-i-1]=t;
}
return String.valueOf(sc);
}