public class Stack extends LinkList{
public Stack(){
public void push (Object element)
{
insertAtFront (element);
}
public Object pop(){
return removeFromFront();
}
public Object peek(){
return getFirst();
}
}
Im trying to create a movieApp using pop push and peek method(Stack). But once the class got compiled, it shows a message "illegal start operation" regarding public void push (Object element). Here is my full coding for class Stack