Java data structures
Ok guys i have 2 questions, i am learning data structures so how to use stacks? tutor says that if u want to use stacks its better to back stack with linkedlist create extra class and define methods there because linkedlist implements deque interface too, but i searched in google and people create stacks by itself like stack<String> example = new stack<string>(); why ?