I am trying to write a simple method that reverse the characters of a string. I need someone to help me correct this.
public String backward(String s){
String str=new String();
String str2=s;
char[] c=str.toCharArray();
for (int i=c.length-1;i>=0;i--)
str+=c[i];
return str;
}