import java.util.Collections; yphlLin.set(index, null); //移除List中所有null yphlLin.removeAll(Collections.singleton(null))