If at least an even element is present then the bitwise AND of the array elements will be even
if ( arr [ i ] % 2 == 0 ) { System . out . print ( " Even " ) ; return ; } } System . out . println ( " Odd " ) ; }