File: test.java.txt

package info (click to toggle)
source-highlight 3.1.8-1.2~deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 10,224 kB
  • sloc: sh: 11,709; cpp: 10,226; ansic: 9,521; makefile: 1,902; lex: 1,200; yacc: 1,021; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ada: 36; ml: 29; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 7; sed: 4
file content (60 lines) | stat: -rw-r--r-- 3,457 bytes parent folder | download | duplicates (5)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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:  * <p>
24:  * A simple Hello World class, used to demonstrate some
25:  * features of Java source highlighting.
26:  * </p>
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 = "<tag attr=\"value\">&auml;</tag>", 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