Arraylist class: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→See also) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- Arraylist class --> | <!-- Arraylist class --> | ||
An <var>Arraylist</var> can be thought of as a traditional array with no bounds and | |||
much more flexibility. | much more flexibility. | ||
Line 30: | Line 30: | ||
==See also== | ==See also== | ||
< | <table class="thJustBold"> | ||
< | <tr><th>[[Collections]]</th> | ||
declaring <var>Arraylist</var> object variables. | <td>For background information about collections and <var>Arraylist</var>s and about | ||
declaring <var>Arraylist</var> object variables.</td></tr> | |||
< | <tr><th>[[Collections#Coding considerations for collections|Coding | ||
</ | considerations for collections]]</th> | ||
<td>For tips on using collections.</td></tr> | |||
</table> | |||
[[Category:System classes]] | [[Category:System classes]] |
Latest revision as of 21:25, 26 June 2013
An Arraylist can be thought of as a traditional array with no bounds and much more flexibility.
The following code shows several of the Arraylist methods:
%alist is collection Arraylist of longstring %i is float %alist = new %alist:add('Idle') %alist:add('Gumby') %alist:add('Chapman') %alist:add('Pallin') %alist:insert(2, 'Jones') %alist:removeItem(4) %alist(3) = 'Cleese' for %i from 1 to %alist:count print %alist(%i) end for
This code snippet would print:
Idle Jones Cleese Pallin
List of Arraylist methods
The "List of Arraylist methods" shows all the class methods, with a brief description of each.
See also
Collections | For background information about collections and Arraylists and about declaring Arraylist object variables. |
---|---|
Coding considerations for collections | For tips on using collections. |