title: Fill NSMutableArray from another NsMutableArray
body: <p>I have two classes <code>indexViewController</code> and <code>flashCardQuestionViewController</code>.</p>
  
  <p>In the <code>indexViewController</code> i have table filled with an array.</p>
  
  <p>Now i am getting some data from the database:</p>
  
  <pre><code>-(void)getMultipleChoiceAnswer
  {   
      if(optionid!=nil)
          [optionid removeAllObjects];
      else
          optionid = [[NSMutableArray alloc] init];
  
      if(optionText!=nil)
          [optionText removeAllObjects];
      else
          optionText = [[NSMutableArray alloc] init];
  
      clsDatabase *clsDatabaseObject = [[clsDatabase alloc] init];
      sqlite3_stmt *dataRows = [clsDatabaseObject getDataset:"select optionID,OptionText from flashCardMultipleAnswer where questionId=1"];
      while(sqlite3_step(dataRows) == SQLITE_ROW)
      {
          [optionid addObject:[NSNumber numberWithInt:sqlite3_column_int(dataRows,0)]];
          [optionText addObject:[NSString stringWithUTF8String:(char *)sqlite3_column_text(dataRows,1)]]; 
      }
  
      sqlite3_finalize(dataRows);
      [clsDatabaseObject release];
  }
  </code></pre>
  
  <p>and I am calling this method in the <code>viewDidLoad</code> method of the <code>indexViewController</code>.</p>
  
  <p>Now I have another <code>NSMutableArray</code> in the <code>flashCardQuestionViewController</code> named <code>listNoOfOptionsInQuestion</code>.</p>
  
  <p>I want to fill <code>listNoOfOptionsInQuestion</code> with objects from <code>optionText</code> array in  <code>indexViewController</code>.</p>
  
  <p>How can I do this?</p>