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:
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