Program1
Fault:
i>=0 not i>0
not execute the fault:
x=null;y=5
execute the fault not error:
x=[0,1,2];y=2
Error not failure:
x=[2,3,5];y=-1
Program2
Fault:
for(int i=x.length-1;i>=0;i--) not for(int i=0;i<x.length;i++)
not execute the fault:
x=null;
execute the fault not error:
x=[1];
Error not failure:
x=[2,0,5];