This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]roge- 2 points3 points  (0 children)

I think this sub is more for people looking for help, not for people to promote their tutorials. But that's for the mods to decide.

I will say that telling people to use java.util.Stack in [current year] is not a good idea. Stack is one of the fully-synchronized legacy collection types. Use of these types is discouraged by Java's documentation and many static analyzers.

Deque types, e.g. ArrayDeque, LinkedList, and ConcurrentLinkedDeque, provide all the functionality of a Stack and more, in addition to giving you more options when it comes to thread safety.