java remove array list null element code example Example: java remove List null element dataList.removeAll(Collections.singleton(null));