View Single Post
  #4 (permalink)  
Old 01-10-2008, 11:58 AM
ravian ravian is offline
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
Thanks all of you.
But it wont work if am not sure about the indexes.

Code:
String s1 = "I am from UK."; String s2 = "I am from"; System.out.println(s1 - s2); // output should be -- UK String s3 = "I am from UK."; String s4 = "UK"; System.out.println(s3 - s4); // output should be -- I am from
I want some generic way of doing it if possible.
Thanks for your time.
Reply With Quote