Just finished spring break, having a hard time remembering some of this stuff.
Right now i am trying to create a Lstack class that will create a stack ADT implemented as a linked list of Nodes.
This is the Lstack class
public class Lstack { int numUsed = 0; Lstack list = new Lstack(); public Lstack(){ } public void push(Car x){ } } How do i go about pushing Car x (an object) into the stack?