Thomas
0
Q:

how to remove null values

List<String> list = new ArrayList
              (Arrays.asList("Java",null,"Python",null, "Ruby"));
CollectionUtils.filter
         (list, PredicateUtils.notNullPredicate()); ==> removes nulls
System.out.println(list);
0

New to Communities?

Join the community