If found , print the pair .
if ( java . util . Arrays . binarySearch ( arr , - arr [ i ] ) != - 1 ) { System . out . println ( arr [ i ] + " , ▁ " + - arr [ i ] ) ; pair_exists = true ; } } else break ; } if ( pair_exists == false ) System . out . println ( " No ▁ such ▁ pair ▁ exists " ) ; }