100 Days of Java challenges

Day 23 - Queue

Write a program that performs the following tasks:
  • Initialise a Queue of String values and add items to it
  • Remove the head element from the Queue
  • Print the first element of the Queue without removing from it
  • Check if a value exists in the Queue
  • Print the number of values(size) in the Queue
  • Remove all values from the Queue

      Community|Blog|Logic Puzzles|Careers|Contact Us
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024