Thursday, May 7, 2015

How do i compare two strings and get the difference?

for example,

1)

s1 ="abc123"

s2 = "123"

strDiff = abc

2)

s1 = "abc123"

s2=""

strDiff = "abc123"


No comments:

Post a Comment