Compare and remove same characters in two Strings in java then output the remaining characters as numbers
<p>Say i have user input 2 different names. for example. firstName = "Stack Overflow"
secondName = "Stack Exchange" what i want to do is to compare them, which means  the word "Stack" would be eliminated, then the remaining String characters will output as numbers. "overflow" will output as 8. same with "Exchange" which should output 8. is there a method that i can use? im just a newbie so i would appreciate a non array method or some advanced java methods.</p>
