Need a Java function to find intersection of two strings. i.e. characters common to the strings.
Example:
String s1 = new String(\"Sychelless\"); St
Extract the characters
String.toCharArray
Put them in a Set Find the intersection
Set.retainAll