01: /* 02:  This is a classical Hello program 03:  to test source-highlight with Java programs. 04:   05:  to have an html translation type 06: 07:  source-highlight -s java -f html --input Hello.java --output Hello.html 08:  source-highlight -s java -f html < Hello.java > Hello.html 09: 10:  or type source-highlight --help for the list of options 11: 12:  written by 13:  Lorenzo Bettini 14:  http://www.lorenzobettini.it 15:  http://www.gnu.org/software/src-highlite 16: */ 17: 18: package hello; 19: 20: import java.io.* ; 21: 22: /** 23:  * 

 24:  * A simple Hello World class, used to demonstrate some 25:  * features of Java source highlighting. 26:  * 

 27:  * TODO: nothing, just to show an highlighted TODO or FIXME 28:  * 29:  * @author Lorenzo Bettini 30:  * @version 2.0 31:  */ 32: public class Hello { 33: int foo = 1998 ; 34: int hex_foo = 0xCAFEBABE; 35: boolean b = false; 36: Integer i = null ; 37: char c = '\'', d = 'n', e = '\\' ; 38: String xml = "ä", foo2 = "\\" ; 39: 40: public static void main( String args[] ) { 41: // just some greetings ;-) /* 42: System.out.println( "Hello from java2html :-)" ) ; 43: System.out.println( "\tby Lorenzo Bettini" ) ; 44: System.out.println( "\thttp://www.lorenzobettini.it" ) ; 45: if (argc > 0) 46: String param = argc[0]; 47: //System.out.println( "bye bye... :-D" ) ; // see you soon 48: } 49: }