wmfairuz
4/17/2014 - 8:32 AM

Remove null elements from a Java list

Remove null elements from a Java list

myList.removeAll(Collections.singleton(null));