int sum = 0;int count1 = 0;for(MarkPan i: list){count1 += i.flag;sum = Math.max(sum, count1);}return sum;z注意下这个求