System.out.println(collection1); // ["one", "two", "three"] System.out.println(collection2); // ["two"] collection1.removeAll(collection2); //["one", "three"]