private static void reverse ( int [ ] array , int start , int end ) { for ( int i = start , j = end ; i < -- j ; ++ i ) { int t = array [ i ] ; array [ i ] = array [ j ] ; array [ j ] = t ; } }
Reverses an array .