+ 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].