function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sankar Landa 30sankar Landa 30 

write a apex that implements an array that acts as a queue and stack i.e elements can be inserted by pushing into the array ,and elements can be popped from the head using popqueue or popped from the last by popstack

Andrew EchevarriaAndrew Echevarria
An apex class? Apex Lists can be referenced with both .add() & .remove(), and also by list[index].