I'm having a hard time starting my lab because I have no idea what the instruction is telling me to do.
Instruction:
public class MyStack<AnyType> implements Stack<AnyType>
{
public boolean isEmpty()
{
return false;
}
public void push(AnyType x)
{
}
public AnyType pop()
{
return null;
}
public AnyType peek()
{
return null;
}
}
So, basically the only thing I have done so far was create another class that just contains an interface which sets up the methods for this class. I do have the "Lab 2" that the instructors assigned if I need to move that java file to this class, you can just say that. Also, how exactly do I instantiate this class? (My level of understanding Java is fairly low, so if you could ELI5 that would be great).