if pairs don 't overlap, print  them and return
if ( ( x != i && x != j ) && ( y != i && y != j ) ) { System . out . println ( " Pair ▁ First ( " + A [ i ] + " , ▁ " + A [ j ] + " ) " ) ; System . out . println ( " Pair ▁ Second ▁ ( " + A [ x ] + " , ▁ " + A [ y ] + " ) " ) ; return ; } } }