public class IntArrayList extends Object
| Constructor and Description |
|---|
IntArrayList() |
IntArrayList(int opacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int val)
Append a new Integer to the end.
|
void |
clear() |
int |
get(int idx) |
void |
remove(int idx)
remove the element at the specified position
use System.arraycopy intead of a loop may be more effcient
|
void |
set(int idx,
int val) |
int |
size() |
public void add(int val)
val - public int get(int idx)
public void set(int idx,
int val)
public void remove(int idx)
idx - public int size()
public void clear()
Copyright © 2017. All Rights Reserved.