微甜未甜℡。。:
1.最简单的方法:publiCStatiCStringreverse1(stringstr){returnnewstringbuffer(str).reverse().tostring();}2.最常用的方法:publiCStatiCStringreverse3(strings){char[]array=s.tochararray();stringreverse="";//注意这是空,不是nullFor(inti=array.length-1;i>=0;i--)reverse+=array[i]....