How to get the difference of letter in two string in Java?
String s1 = "2 + 5 = 7";
String s2 = "2 5 7";
String difference = StringUtils.difference(s1, s2);
System.out.println(difference);
I want the output +1|=2
As + is next after first character and = is next after second character while checking the difference between the two string.
How can I implement this program in java?