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:  */ /// class 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: /* mymethod */ 41: public void mymethod(int i) { 42: // just a foo method 43: } 44: /* mymethod */ 45: 46: /* main */ 47: public static void main( String args[] ) { 48: // just some greetings ;-) /* 49: System.out.println( "Hello from java2html :-)" ) ; 50: System.out.println( "\tby Lorenzo Bettini" ) ; 51: System.out.println( "\thttp://www.lorenzobettini.it" ) ; 52: if (argc > 0) 53: String param = argc[0]; 54: //System.out.println( "bye bye... :-D" ) ; // see you soon 55: } 56: /* main */ 57: } 58: /// class 59: 60: // end of file test.java