0

Hi,

I am facing problem regarding the element wise comparison of two strings and finding the difference of two Strings where one sting is not sub string of other. More than that Strings are of different length.

Let
String 1= "1 2 3 4 5"
String 2="3 4 5 6 7 8 9"

I need String 3 which is String 1 Difference String2 ( removing the elements of String 2 from String1)
So String 3= "1 2"
Please help me by providing Java Code for it.

Thanks
Rajhans

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by rajhans
1

Do you know how to program in Java?
Are you trying to learn how to program in java?

0

Just faced a small problem in between the code . Btw it has been solved way back . thank u vey much !

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.