Skip to content

Instantly share code, notes, and snippets.

@Lahirutech
Last active May 22, 2021 12:57
Show Gist options
  • Save Lahirutech/ce6abcac47417fe8a8f64a9093b05780 to your computer and use it in GitHub Desktop.
Save Lahirutech/ce6abcac47417fe8a8f64a9093b05780 to your computer and use it in GitHub Desktop.
var myArrList = new ArrayList();
var myArrList2 = new ArrayList(){1, "Bill", " ", true, 4.5, null};
int[] arr = { 150, 200, 300, 400 };
Queue myQ = new Queue();
myQ.Enqueue("Hello");
myQ.Enqueue("World!");
arlist1.AddRange(myArrList2); //adding arraylist in arraylist 
arlist1.AddRange(arr); //adding array in arraylist 
arlist1.AddRange(myQ); //adding Queue in arraylist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment