List now implements various forms of add()

This commit is contained in:
Eric Scharff
2007-09-26 10:32:39 -06:00
parent 219e381def
commit 4d3fd38d54
5 changed files with 29 additions and 0 deletions

View File

@ -25,6 +25,10 @@ public class Arrays {
throw new UnsupportedOperationException();
}
public void add(int index, T element) {
throw new UnsupportedOperationException();
}
public boolean contains(T element) {
for (int i = 0; i < array.length; ++i) {
if (equal(element, array[i])) {