标签:技术分享 length -- 数组 http img log ges ble
Problem 1:
1) 循环里的i>0应该改为i>=0
2) x为空数组时
3) x = [2,3,5], y = 5
4) x = [2,3,5], y = 6
Problem2:
1) 循环遍历的顺序反了,循环体应该改成:
for (int i = x.length – 1; i >= 0; i--)
{
}
2) x为空数组时
3) x = [2,3,0]
4) x = [2,3,5]
标签:技术分享 length -- 数组 http img log ges ble
原文地址:http://www.cnblogs.com/tjulcg/p/6493101.html