If concatenation of elements is divisible by 3
if ( Integer . parseInt ( Integer . toString ( arr [ i ] ) + Integer . toString ( arr [ j ] ) ) % 3 == 0 || Integer . parseInt ( Integer . toString ( arr [ j ] ) + Integer . toString ( arr [ i ] ) ) % 3 == 0 ) {