Reviewed-on: #13 Co-authored-by: hitanshu310 <hitanshu98@gmail.com> Co-committed-by: hitanshu310 <hitanshu98@gmail.com>
33 lines
573 B
Java
33 lines
573 B
Java
package com.hithomelabs.princeton1.module4;
|
|
import java.util.Iterator;
|
|
import javax.annotation.Nonnull;
|
|
|
|
// Concrete implementation of stack using arrays
|
|
// Creating a generic stack of type E
|
|
public class ArrayStack<E> extends Stack<E> {
|
|
@Override
|
|
public boolean isEmpty() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void push(E element) {
|
|
|
|
}
|
|
|
|
@Override
|
|
public E pop() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public Iterator<E> iterator() {
|
|
return null;
|
|
}
|
|
}
|