Write a program that creates a text file that contains a power of two table in HTML format. The file could be called "twoPowerTable.html". When it is viewed with a browser you will see something like:
Power of 2 Value
0 1
1 2
2 4
3 8
4 16
5 32
6 64
7 128
8 256
9 512
10 1024
The file should start with something like:
<html><head>
<title>Powers of Two</title>
</head>
<body>
<table border cellpadding=5>
<tr><th>Power of 2</th><th>Value</th></tr>
And end with:
</table>
</body></html>
Each line of the table looks like:
<tr><td>0</td><td>1</td></tr>
I don't know why it can't show the table but i am doing the Exercises in this website: http://chortle.ccsu.edu/java5/Notes/chap83/progExercises83.html