// 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 ...