Need a Java function to find intersection of two strings. i.e. characters common to the strings.
Example:
String s1 = new String(\"Sychelless\"); St
Most basic approach:
String wordA = "Sychelless"; String wordB = "Sydney"; String common = ""; for(int i=0;i