I've been racking my brain for the past hour wondering how to do this. It's more of a logic question than a technical question I think.
I have two strings and wish to count how many characters they have in common. I.e Emily + Andy = 1.
I thought I could maybe convert the strings to char arrays and use two For statements within each other to go through each possibility, but I'm not 100% on how I'd do that. I've scoured Google for an answer but I'm not getting anywhere.
I apologize for not providing any code, I don't currently have any. I'm fairly new to Java and I'm not sure how to go about this.
Anyone have a solution?