Question: write code in java. object oriented programming. the output should be same as the sample output below. Problem Description Hypertext Markup Language (HTML) is the
write code in java. object oriented programming. the output should be same as the sample output below.

Problem Description Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications. The first publicly available description of HTML was a document called "HTML Tags", first mentioned on the Internet by Tim Berners-Lee in late 1991. It describes 18 elements comprising the initial, relatively simple design of HTML. The HTML that Tim invented was strongly based on SGML (Standard Generalized Mark-up Language), an internationally agreed upon method for marking up text into structural units such as paragraphs, headings, list items and so on. SGML could be implemented on any machine. The idea was that the language was independent of the formatter (the browser or other viewing software) which actually displayed the text on the screen. The use of pairs of tags such as
is taken directly from SGML, which does exactly the same. The SGML elements used in Tim's HTML included P (paragraph); H1 through H6 (heading level 1 through heading level 6); OL (ordered lists); UL (unordered lists); LI (list items) and various others. What SGML does not include, of course, are hypertext links: the idea of using the anchor element with the HREF attribute was purely Tim's invention, as was the now-famous 'www.name.name' format for addressing machines on the Web. Write a program that reads a HTML text and determines whether the text that consist of the following HTML tags are balance.
paragraph
bold text italic text underlineInput The first line will contain T (T you are the semicolon to my statement
first solve the problem , then write the code
Sample Output Balance Not balance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
