@ NullSafe public static int multiply ( final int ... numbers ) { int result = 0 ; if ( numbers != null ) { result = ( numbers . length > 0 ? 1 : 0 ) ; for ( int number : numbers ) { result *= number ; } } return result ; }
Multiplies the array of numbers .