Question: remove a substring from a string
Please I jave an arraylist composed as follwoing [w1, w2, w3, w4, w1.w2.w3, w2.w3.w4, w3.w4, w2.w4, w1.w3, w1.w2]
w2.w4 is a subset of w2.w3.w4 ?how I recognize it
w1.w3 is a subset of w1.w2.w3 ?how I recognize it
same for w1.w2 in w1.w2.w3.
I nedd your help.
Thanks a lot