private static < T > void cancelAll ( ArrayList < Future < T > > futures , int j ) { for ( int size = futures . size ( ) ; j < size ; j ++ ) futures . get ( j ) . cancel ( true ) ; }
Cancels all futures with index at least j .