friend... A doubt in string concept

friend.... dis is kArtik... a very very smAll doubt....:)
im comparing two strings..... sAy str1,str2.
if any chArActer of str1 mAtches to str2, im going to delete that chAracter from both strings.....
eample-
befor execution-
str1=ghjm
str2=mjfg

after execution-
str1=gh
str2=f

how could i Acheive dis.....? plz send me code, And specify Appropriate string method to use in our code....:) thankx...

friend.... dis is kArtik... a very very smAll doubt....:)
im comparing two strings..... sAy str1,str2.
if any chArActer of str1 mAtches to str2, im going to delete that chAracter from both strings.....
eample-
befor execution-
str1=ghjm
str2=mjfg

after execution-
str1=gh
str2=f

how could i Acheive dis.....?

with the replace method? See the String API docs.

plz send me code,

No.

And specify Appropriate string method to use in our code....:) thankx...

I already did (at least part of them and one possible way, there are more and others), and why would you need this if somebody had already done your work for you and sent you the code?

how could i Acheive dis.....? plz send me code, And specify Appropriate string method to use in our code....:) thankx...

I don't understand that remark: if someone else sends you the code it is that other person's code, not 'our code', neither would it be your achievement, it would be the achievement of that other person.