大神们看看哪里有问题?谢谢
package HelloWorld;
public class HelloWorld{
public static void main (String args[]){
char[] a={'a','b','c','d','e'};
for(int i=0; i<=a.length/2; i++){
char c=a[i];
a[i]=a[a.length-(i-1)];
a[a.length-(i-1)]=c;
}
System.out.printf("%c%c%c%c%c",a[0],a[1],a[2],a[3],a[4]);
}
}