▶ 예시
public static void main(String[] args) {
Integer[] list = {10, 20, 30};
for(int i = 0; i < list.length-2; i++){
if((list[i] - list[i+1]) == (list[i+1] - list[i+2]))
System.out.println(1);
else
System.out.println(0);
}
}