You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
otherNames.iterator().next() + " and " + otherNames.iterator().next();does not move the iterator on between the two calls to nextso you get the same name twice.