Speiger 0af3266f02 Finished ArrayList
-Finished: Missing Methods to ArrayList
-Added: Stack.class
-Added: Trimmable interface
2020-11-28 15:05:28 +01:00

19 lines
237 B
Java

package speiger.src.collections.utils;
public interface Stack<T>
{
public void push(T e);
public T pop();
public int size();
public void clear();
public default T top() {
return peek(0);
}
public T peek(int index);
}