iniziato la prima struttura arraylist

This commit is contained in:
2014-03-24 18:25:22 +01:00
parent 9328c4c25e
commit afaa638caa
3 changed files with 84 additions and 0 deletions

20
arraylist/IndexList.java Normal file
View File

@@ -0,0 +1,20 @@
package arraylist;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 24/03/14
* Time: 14:29
*/
public interface IndexList<E> {
public E remove(int i) throws IndexOutOfBoundsException;
public void add(int i, E e) throws IndexOutOfBoundsException;
public E set(int i, E e) throws IndexOutOfBoundsException;
public E get(int i) throws IndexOutOfBoundsException;
public boolean isEmpty();
public int size();
}