code: Kam[] kams(KamNode... nodes) {
          List<Kam> kams = new ArrayList<Kam>(nodes.length);
          for (int i = 0; i < nodes.length; i++) {
              KamNode node = nodes[i];
              kams.add(node.getKam());
          }
          return kams.toArray(new Kam[0]);
      }
docs: Returns the KAMs associated with each KAM node.
  
  @param nodes KAM nodes
  @return Kam array