find out the elements of an arraylist which is not present in another arraylist February 19, 2023 by Tarik List<Integer> c = new ArrayList<>(a); c.removeAll(b); Also consider to use Sets instead of Lists.