I am a beginner in java. My question is suppose two strings s1 and s2 are given.
String s2="abc bcd def efg";
and its output should be aefg....
So please tell me how can i achieve this output...
thanks in advance...
I haven't seen what other people have suggested thus what I suggest may be same. If it is then please ignore my post.
One approach could be by taking s1 and removing occurrence of all s1’s characters from s2. Thus what you get after this removal would be the output you are looking for.
subject: how to compare characters between two strings?