A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© blackstones1 中级黑马   /  2014-6-16 14:59  /  1143 人查看  /  1 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

class aaa
{
        public static void main(String[] args)
        {       
                String s = "abcdefkkfedcba";
                boolean result = true;
                for(int x=0,y=s.length(); x<y; x++,y--)
                {
                        if(s.charAt(x)!=y.charAt(y))
                                result = false;
                }

        }

}
出现如下情况 为什么 求大婶详解





1 个回复

倒序浏览
晕 调函数的时候 写错了 大家不用管了
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马