What I want to achieve is to count the numbers of the string that has the same value from the inputs.
Set group1 = new HashSet(); Set group2 = new HashSet();