Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 367.3k

How to load Arraylist to Array

Jan 5 2017 4:29 AM
I have a Array list.I want to convert this into separate array.
My Array list name is [obj];
 
obj={  {[A],[B]} ,
          {[C],[D]},
          {[E],[F]}  }
 
Now I want to convert  it to separate Array.
array x1= {[A],[B]};
array x2= {[C],[D]};
array x3=  {[E],[F]};
 
What am tried:
  1. for (var i = 0; i < obj.length; i++) {  
  2. X = obj[i];  
  3. }  
 Please help me to achieve this?

Answers (9)