java.util.List
From Wikiversity
- This page will soon be moved to Java Collections Overview
Collection Interface:java.util.List |
|
|---|---|
| Ordered? | Yes |
| Access | Random |
| Access Key | Index |
| Allow Duplicates? | Yes |
| Standard Implementations | java.util.ArrayList,java.util.Stack (LIFO),java.util.Vector |
A List is a subinterface of java.util.Collection that keeps its elements ordered (like an array) and allows duplicate elements (also like an array). In fact, the main difference between an array and a list is that arrays are fixed-width, but lists can grow and shrink on demand.
Useful Methods [edit]
...
Standard Implementations [edit]
...
Subclassing List [edit]
...
| Project: Advanced Java |
| Previous: None — Java.util.List — Next: java.util.Set |