A
Adam Sandler
Hello,
I have 2 questions about using array lists.
1. I have a method which returns an arraylist. I'd like to put the
contents of what is returned into another arraylist:
ArrayList al = new ArrayList();
al.AddRange(obj.getArrayList());
The two lines above fail miserably.
2. Can the contents of an arraylist of strings populate a richtextbox
without iterating through the collection? I've seen this: rtb.Text
+= myList.toString() but is there a built-in method which would do
the same thing?
Thanks,
--Chris
I have 2 questions about using array lists.
1. I have a method which returns an arraylist. I'd like to put the
contents of what is returned into another arraylist:
ArrayList al = new ArrayList();
al.AddRange(obj.getArrayList());
The two lines above fail miserably.
2. Can the contents of an arraylist of strings populate a richtextbox
without iterating through the collection? I've seen this: rtb.Text
+= myList.toString() but is there a built-in method which would do
the same thing?
Thanks,
--Chris