private void initializeLayer(List<Neuron> layer,NeuronUpdateRule nodeType,int nodes){
  for (int i=0; i < nodes; i++) {
    Neuron node=new Neuron(getParentNetwork(),nodeType);
    layer.add(node);
  }
}

private void initializeLayer ( List < Neuron > layer , NeuronUpdateRule nodeType , int nodes ) { for ( int i = 0 ; i < nodes ; i ++ ) { Neuron node = new Neuron ( getParentNetwork ( ) , nodeType ) ; layer . add ( node ) ; } }
helper method to initialize a layer by adding the desired number of neurons with the desired neuron update rule .
