Skip to main content
deleted 4 characters in body
Source Link
Kevin Bourrillion
  • 40.9k
  • 11
  • 77
  • 87
list.removeAll(Collections.singletonListsingleton(null)); 
list.removeAll(Collections.singletonList(null)); 
list.removeAll(Collections.singleton(null)); 
Source Link
Michael Borgwardt
  • 347.3k
  • 81
  • 491
  • 726

list.removeAll(Collections.singletonList(null));