Java question
In Java please
Create a method that is called priorityPush where it would be added to the code below. The goal of this method is to either add a new element to the stack or if the element already exists in the stack then move it up to the top and prioritize it.
the method header is:
public boolean priorityPush(T element)
SAMPLE ASSIGNMENT