121122123124125126127128129130131
NIC[] nics = new NIC[networks.length]; for (int i = 0; i < networks.length; i++) { String network = networks[i]; _NIC nic = new DefaultNIC(); nic.setNetworkName(network); nics[i] = nic; } return nics; }