• 2022-07-23
    假设一个线性表包含元素{"red","green","red","green"}.下列代码执行后,线性表是______________?Stringelement="red";for(inti=list.size()-1;i>;=0;i--)if(list.get(i).equals(element))list.remove(element);
    A: {"red","red","green"}
    B: {"red","green"}
    C: {"green","green"}
    D: {"green"}
    E: {}