Thread
:
Subtracting Strings
View Single Post
#
6
(
permalink
)
01-10-2008, 05:19 PM
ravian
Senior Member
Join Date: Nov 2007
Posts: 115
Thanks everyone. Following worked for me.
Code:
String s1 = "I am from UK."; String s2 = "I am from"; System.out.println(s1.replaceAll(s2," "));
ravian
View Public Profile
Send a private message to ravian
Find all posts by ravian