java移除List中所有null

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

  

posted @ 2020-06-16 11:31  八英里  阅读(2475)  评论(0)    收藏  举报