> Hi,
> String s1 = "123";
> String s2 = "abcdefg abcfrjh abc";
> How can I change in s2 where I have "abc" to "123"?
> the result that I whant is:
> s2 = "123defg 123frjh 123";
>
> Thanks
> Yael
Have a look at String's replaceAll(...) method:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html