Serving the Quantitative Finance Community

 
User avatar
Piyushbhatt
Topic Author
Posts: 3
Joined: July 8th, 2022, 5:14 am

Why there is no stack interface in the collection framework?

July 12th, 2022, 4:07 pm

Why there is no stack interface in the collection system in java? Java Collection framework gives numerous connections (Set, List, Queue, Deque) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet). So, why not a stack interface?
Hi, I’m Piyush. I’m a Computer Science and Engineering graduate who is passionate about programming and technology. I found this forum in hopes of learning something valuable in programming.
 
User avatar
katastrofa
Posts: 6976
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Why there is no stack interface in the collection framework?

August 6th, 2022, 7:24 pm

Are you an AI bot?
 
User avatar
Cuchulainn
Posts: 17680
Joined: July 16th, 2004, 7:38 am
Location: Lviv

Re: Why there is no stack interface in the collection framework?

August 8th, 2022, 6:31 pm

Are you an AI bot?
A not very intelligent AI bot at that, WHAT?

https://www.geeksforgeeks.org/stack-class-in-java/

Any self-respecting programmer can write a stack using delegation. OOP 101.
вот мой дорогой двоюродный брат