最赞回答 / 晓*(≧▽≦)
for(int i =str.length();i>=0;i=i-3)把for里面的条件换成(int i = str.length()-3 ; i > 0;i = i-3)
2014-08-01