List of Arraylist methods: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
Line 6: Line 6:
<table class="wikitable">
<table class="wikitable">
<tr><th>Method</th><th>Description</th></tr>
<tr><th>Method</th><th>Description</th></tr>
<tr><td valign="top">[[Add (Arraylist function)|Add]]</td><td valign="top">Add an Arraylist item</td></tr>
<tr><td valign="top">[[Add (Arraylist function)|Add]]</td><td valign="top">Add Arraylist items</td></tr>
<tr><td valign="top">[[Audit (Arraylist subroutine)|Audit]]</td><td valign="top">Audit Arraylist</td></tr>
<tr><td valign="top">[[Audit (Arraylist subroutine)|Audit]]</td><td valign="top">Audit Arraylist</td></tr>
<tr><td valign="top">[[Average (Arraylist function)|Average]]</td><td valign="top">Average the members of this ArrayList</td></tr>
<tr><td valign="top">[[Average (Arraylist function)|Average]]</td><td valign="top">Average the members of this ArrayList</td></tr>

Revision as of 01:49, 14 March 2011

The following are the available Arraylist class methods.

MethodDescription
AddAdd Arraylist items
AuditAudit Arraylist
AverageAverage the members of this ArrayList
CopyCopy the Arraylist
CountNumber of items in Arraylist
CountSubsetNumber of items matching a criterion
DeepCopyDeep Copy the Arraylist
DequeueRetrieve first Arraylist item, then remove item
EnqueueAdd item to end of Arraylist
FindNextItemFind matching Arraylist item
FindNextItemNumberReturn number of matching item
FindPreviousItemFind matching Arraylist item
FindPreviousItemNumberReturn number of matching item
FirstItemRetrieve or set value of first Arraylist item
InsertInsert item into Arraylist
ItemReturn or set Arraylist item value
LastItemRetrieve or set value of last Arraylist item
ListConstruct and populate a new Arraylist
MaximumGet number of maximum item
MaximumItemGet item that has maximum value
MinimumGet number of minimum item
MinimumItemGet item that has minimum value
PopRetrieve last Arraylist item, then remove item
PrintPrint Arraylist
PushAppend item to Arraylist
RemoveItemRemove item from Arraylist
SortSort the input Arraylist
SortNewReturn new sorted Arraylist
StandardDeviationCompute the standard deviation of the items
SubsetNewReturn all matching Arraylist items
SumCompute the sum of the items
TraceTrace Arraylist
VarianceCompute the variance of the items

See also