HTML is a mark-up language, in short you can not write loops or conditional
statements with HTML
Java is a platform free programming language. It is object oriented. If you are
new I strongly advise you to get Jbuilder java development tool by Borland as
the GUI creation with Java can be redunant. JBuilder 5 is free of charge. Check
the web site
www.borland.com
Also a good tool is sun.java.com