I want my Java application to write HTML code in a file. Right now, I am hard coding HTML tags using java.io.BufferedWriter class. For Example:
BufferedWrite
I would highly recommend you use a very simple templating language such as Freemarker