./Hello.java

    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 ;
    24:     Integer i = null ;
    25:     char c = '\'', d = 'n', e = '\\' ;
    26:     String xml = "<tag attr=\"value\">&auml;</tag>", 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( "\twww.lorenzobettini.it" ) ;
    33:         //System.out.println( "bye bye... :-D" ) ; // see you soon
    34:     }
    35: }