Program1:
1 在循环时应该是i>=0
2 test: x=[3];y=3
3 test: x=[3,5,6]; y=0
4 test: x=[3,2
Program1:
1.在循环时应该是i>=0
2.test: x=[3];y=3
3.test: x=[3,5,6]; y=0
4.test: x=[3,2,5];y=3
Program2:1.for(int i=0;i<x.length;i++)
应改为
for(int i=x.length-1;i>=0;i--)
2.x=[];
3.x=[3,5,6];
4.x=[0,5,0];


![[软件工程]软件测试方法](https://cdnss.haodaima.top/uploadfile/2024/0322/20240322043326498.png)
