I know how to reverse a string but I was just trying for an alternate way to do the same using a character array. Just tell me why the wrong output comes?
a has the String

```
char[] c = a.toCharArray();
int j = c.length;
char c2[] = c;
for(int i = 0; i < j; i++){
    c2[i] = c[j - i - 1];
}
System.out.println(c2);

```

like giving harold gives output dloold