If you have an array of characters, write a method to reverse the string.
Risposte di colloquio
Anonimo
11 mag 2011
You can do this with Stringbuffer as well.
Anonimo
4 feb 2011
I have known this question and the answer is can do it recursively. It's hard to explain this over the phone in words. He didn't really like it and said to use pointers to go to midway and do a swap. I think it's a matter of preference.