<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="java2html 1.7 by Lorenzo Bettini, bettini@gnu.org http://w3.newnet.it/bettini http://www.gnu.org/software/java2html/java2html.html"> <title>Happy Java with java2html :-)</title> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000EE" vlink="#551A8B" alink="#FF0000"> <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> </body> </html>