<pre> <tt> <i><font color=#9A1900>/* This is a classical Hello program to test java2html. to have an html translation type java2html --input Hello.java --output Hello.html java2html < Hello.java > Hello.html or type java2html --help for options list written by Lorenzo Bettini <bettini@gnu.org> http://w3.newnet.it/bettini http://www.gnu.org/software/java2html */</font></i> <b><font color=#0000FF>import</font></b> java.io.* ; <b><font color=#0000FF>public</font></b> <b><font color=#0000FF>class</font></b> Hello { <font color=#009900>int</font> foo = <font color=#993399>1998</font> ; <font color=#009900>int</font> hex_foo = <font color=#993399>0xCAFEBABE</font>; <font color=#009900>boolean</font> b ; Integer i = <b><font color=#0000FF>null</font></b> ; <font color=#009900>char</font> c = <font color=#FF0000>'\''</font>, d = <font color=#FF0000>'n'</font>, e = <font color=#FF0000>'\\'</font> ; String xml = <font color=#FF0000>"<tag attr=\"value\">&auml;</tag>"</font>, foo2 = <font color=#FF0000>"\\"</font> ; <b><font color=#0000FF>public</font></b> <b><font color=#0000FF>static</font></b> <font color=#009900>void</font> main( String args[] ) { <i><font color=#9A1900>// just some greetings ;-) /* </font></i> System.out.println( <font color=#FF0000>"Hello from java2html :-)"</font> ) ; System.out.println( <font color=#FF0000>"\tby Lorenzo Bettini"</font> ) ; System.out.println( <font color=#FF0000>"\tbettini@gnu.org"</font> ) ; <i><font color=#9A1900>//System.out.println( "bye bye... :-D" ) ; // see you soon </font></i> } } </tt> </pre>