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: import java.io.* ; 19:  20: public class Hello { 21:  int foo = 1998 ; 22:  int hex_foo = 0xCAFEBABE; 23:  boolean b = false; 24:  Integer i = null ; 25:  char c = '\'', d = 'n', e = '\\' ; 26:  String xml = "ä", foo2 = "\\" ; 27:  28:  public static void main( String args[] ) { 29:  // just some greetings ;-) /* 30:  System.out.println( "Hello from java2html :-)" ) ; 31:  System.out.println( "\tby Lorenzo Bettini" ) ; 32:  System.out.println( "\thttp://www.lorenzobettini.it" ) ; 33:  if (argc > 0) 34:  String param = argc[0]; 35:  //System.out.println( "bye bye... :-D" ) ; // see you soon 36:  } 37: }