I have one string that contains String s1="1 2 7 8"
now suppose I have two string String s2="1 7 8" and String s3="1 2 8"
so by comparing that two string to my first one it should return true.
But when I do s1.contanis(s2)
it returns false.
Is there any other easy way to compare these type of patterns, without split each one and comparing one by one?