java write HTML

来源:百度知道 编辑:UC知道 时间:2024/09/20 09:39:55
Count the letters in a file of text: e.g. that there are 34 'e'and so on.Write the complete table out to a file.The file name should be an argument to the main constructor.

Then write the letter frequency data to an HTML page.
You can find the header and footer elements of a web page by using the view source menu item in a browser.
Add a table showing the letters in order of frequency - the most commmon letters first.

请高手指点一下代码。感激

先读文件,一个接一个字符的读,写到hashMap里面,再存一个文件。。

然后把这个文件放到命令行参数读入。。好搞的嘞。。

然后在一张HTML页面中输出一张表格,就那么两列数据。。

貌似没什么意思。。