Having trouble loop through a list <set <pair > >
===

Here is how I declared my list. it.next() appears to be returning my set when it should be returning a pair (which is a string,int pair) in one of my lists. Any ideas? The parentheses outside of Pair should be  <>

List <..HashSet.. (Pair) >  addresses = new ArrayList < HashSet (Pair) > ();

I'm trying...
for (int i = 0; i < 100; i++) {
			
			Iterator it = (addresses.get(i)).iterator();
			while (it.hasNext()){
			
				String m = it.next().getFirst()); //getFirst returns a string


			}
			
		}