File: test.java.txt

package info (click to toggle)
source-highlight 1.11-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,872 kB
  • ctags: 4,699
  • sloc: sh: 3,633; cpp: 2,606; lex: 2,463; ansic: 1,610; makefile: 537; php: 185; perl: 145; yacc: 122; ruby: 63; sed: 53; python: 45; ml: 38; java: 30
file content (37 lines) | stat: -rw-r--r-- 2,360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 = "<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( "\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: }