public LoadBalancedSplitter(int numChannels){
  if (numChannels < 1)   throw new IllegalArgumentException("numChannels");
  chBusy=new boolean[numChannels];
  Arrays.fill(chBusy,false);
  gate=new Semaphore(numChannels);
}

public LoadBalancedSplitter ( int numChannels ) { if ( numChannels < 1 ) throw new IllegalArgumentException ( "numChannels" ) ; chBusy = new boolean [ numChannels ] ; Arrays . fill ( chBusy , false ) ; gate = new Semaphore ( numChannels ) ; }
create a new splitter .
