Java) The objective is to write a program that reads CSV data and emits HTML data. The program should accept input line-by-line in CSV format. Then the program should produce output line-by-line in HTML format. You may use Scanners but should not need any other imports. (Note that regular expressions are forbidden for this assignment.) Special Case Requirements • Ignore all lines that begin with #. These represent comments in the data that should not be included. If the # character appears anywhere else, treat it as a regular character. • Treat escaped commas as regular characters. A comma is considered escaped if it is preceded by a backslash.
(Java) The objective is to write a program that reads CSV data and emits HTML data. The
program should accept input line-by-line in CSV format. Then the program should produce
output line-by-line in HTML format. You may use Scanners but should not need any other
imports. (Note that regular expressions are forbidden for this assignment.)
Special Case Requirements
• Ignore all lines that begin with #. These represent comments in the data that should not be included. If the # character appears anywhere else, treat it as a regular character.
• Treat escaped commas as regular characters. A comma is considered escaped if it is preceded by a backslash.
• These special cases are summarized in the example below:
![Special Case Requirements
• Ignore all lines that begin with #. These represent comments in the data that should
character appears anywhere else, treat it as a regular
not be included. If the
character.
• Treat escaped commas as regular characters. A comma is considered escaped if it is
preceded by a backslash.
• These special cases are summarized in the example below:
a,b,c
d, e f ,g
#ignore this
һ,,
i\,,j,\,k
becomes
<tr><td>a</td><td>b</td><td>c</td></tr>
<tr><td>d</td><td> e f </td><td>g</td></tr>
<tr><td>h</td><td></td><td></td></tr>
<tr><td>i,</td><td>j</td><td>,k</td></tr>](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe8f6e8df-fe29-4e31-a491-f3152d4002a8%2F5a4a419e-54bc-4e2d-8077-f1062a56de10%2Fqgi4ouy_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Please find a crude implementation below. The question is complex and may thus, need more polishing.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)