4 Comments

  1. Michael Ungermann

    The output for question is not “Apple Apple Nokia Nokia”. The correct answer is “Apple Apple Nokia Samsung”

    Reply

    • The correct answer is “Apple Apple Nokia Nokia”. Please run the program to verify.

      The third operation is peek(). It does not remove “Nokia”, but just returns it.

      Reply

Leave a Reply