for(int i=str.length()-3;i>0;i-=3)
{
str.insert(i,",");
}
{
str.insert(i,",");
}
2017-06-08
大家将鼠标点击在每个result字母上,会提示你,result返回的是try。。catch。。还是finnally的值。
2017-06-07
http://www.imooc.com/article/18335
用数组写的,因为自己没看到集合,但是想写一点代码就写了,写的不好,你们可以看看,可以给我提意见。大家一起进步。
用数组写的,因为自己没看到集合,但是想写一点代码就写了,写的不好,你们可以看看,可以给我提意见。大家一起进步。
2017-06-07
http://www.imooc.com/article/18320 参考了被人的代码,看来还有很多需要学习的!三季学完了才只是开始,努力吧!
2017-06-06
http://www.imooc.com/article/18319
新手,请围观。
新手,请围观。
2017-06-06
http://www.imooc.com/article/18304 新手,欢迎交流
2017-06-05
for ( int i=0; i<s.length()-1;i++ )
{
// 获取每个字符,判断是否是字符a
if ( (s.charAt(i))=='a' ){
// 累加统计次数
num++;
}
}
{
// 获取每个字符,判断是否是字符a
if ( (s.charAt(i))=='a' ){
// 累加统计次数
num++;
}
}
2017-06-05