public NetNosList remove_from_net(int net_no){
  int current_len=net_nos_arr.length;
  ArrayList<Integer> risul=new ArrayList<Integer>(current_len);
  for (int index=0; index < current_len; index++) {
    int a_net_no=net_nos_arr[index];
    if (a_net_no == net_no)     continue;
    risul.add(a_net_no);
  }
  if (risul.size() == current_len)   return null;
  return new NetNosList(risul);
}

public NetNosList remove_from_net ( int net_no ) { int current_len = net_nos_arr . length ; ArrayList < Integer > risul = new ArrayList < Integer > ( current_len ) ; for ( int index = 0 ; index < current_len ; index ++ ) { int a_net_no = net_nos_arr [ index ] ; if ( a_net_no == net_no ) continue ; risul . add ( a_net_no ) ; } if ( risul . size ( ) == current_len ) return null ; return new NetNosList ( risul ) ; }
if the given net_no is foundin the list returns a new object with that element less , otherwise null
