// Now q1 contains the new element at the front, followed by older elements System.out.println("Top element: " + stack.peek()); // Expected: C System.out.println ...
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana