Looks like you test all elements against all other elements. For example, if elements 3 and 5 meet the criteria then you'd write out the pair once for i=3, j=5 and once again for i=5, j=3.
I suggest you change your inner loop to:
for(int j = i+1; j<alcmapj.size(); j++)