lmplementation Details:For this program you will write a class named utmlvalidator using the sr,ack and pueue interfaces and theArraystack and LinkedQueue implementations used in lecture. You will also need the files namedHrmlTag . j ava,SimpleTest.java, andvalidat,orclient..javafromthewebsite;placetheminthesamefolderasyourprogram.Your class must have the following public constructors and methods. It must be possible to call these methods anynumber of times on your object, in any order, and get the same expected results each time.MethodDescriptionHtmlValidator(Queue<HtmlTag> tags)In this constructor you should initialize your validator forexaminingthe given queue of HTML tags representing theentire contents of an HTML file. If the queueis empty, itshould throw an IlleealArsumentExceotion.void setTags(Queue<HtmlTag> tags)In this method you should set the validator to use thegiven queue of tags instead of the Queue"it previouslyused. Future calls to getTags and validate should usethis new queue.
This is the end of the preview.
access the rest of the document.