We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, Is there a more efficient way to **append an object/remove an object ** to an array than :
I have a class letter and I want to append a new letter to the array list_l.
list_l = (letter[]) append(list_l,b);
and
I want to remove the first element but the function subset copy the array so it's slow.
list_l = (letter[]) subset(list_l,1);
Thanks
Answers
The best thing to do is to stop using an array.
Instead, use an ArrayList.
File > Examples... > Topics > Advanced Data > ArrayListClass
And see also:
Thanks for the advices! Have a great day
@josephh
I would still recomment using arrays whenever possible since it is a lot simpler to manipulate arrays than array lists.