Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข3y agoโ€ข
12 replies
eat1.

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 ?
Was this page helpful?