Hi,
I have a string and set (I not really using a set, it cud be a arraylist or array of string)
I want to have the following results:
{A, B}
If I have any character that does not contain in the in the set then just concat(concatenate)them to the rest but if it is in the set write the string once with the character and once without it
So for:
aAB -----> aAB aA aB a
what is the best way to do this?
thanks