test&lab
This commit is contained in:
21
test/ListInterface.java
Normal file
21
test/ListInterface.java
Normal file
@@ -0,0 +1,21 @@
|
||||
public interface ListInterface<T>{
|
||||
public void add(T newEntry);
|
||||
|
||||
public void add(int newPosition, T newEntry);
|
||||
|
||||
public T remove(int givenPosition);
|
||||
|
||||
public void clear();
|
||||
|
||||
public T replace(int givenPosition, T newEntry);
|
||||
|
||||
public T getEntry(int givenPosition);
|
||||
|
||||
public T[] toArray();
|
||||
|
||||
public boolean contains(T anEntry);
|
||||
|
||||
public int getLenght();
|
||||
|
||||
public boolean isEmpty();
|
||||
}
|
||||
Reference in New Issue
Block a user