File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed
Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -10,48 +10,48 @@ I'm in the process of finalizing the documentation and packaging a release. Tha
1010Here's a very simple example. First we show the file:
1111
1212``` bash
13- $ cat HelloWorld.java
13+ $ cat HelloWorld.java
1414```
1515
1616And we get this:
1717
1818``` java
19- // This is the HelloWorld class with a single method.
20- class HelloWorld {
21- public static void main (String [] args ) {
22- System . out. println(" Hello, world." );
23- }
19+ // This is the HelloWorld class with a single method.
20+ class HelloWorld {
21+ public static void main (String [] args ) {
22+ System . out. println(" Hello, world." );
2423 }
24+ }
2525```
2626
2727Next we run our program:
2828
2929
3030``` bash
31- $ j2py HelloWorld.java
31+ $ j2py HelloWorld.java
3232```
3333
3434And we get this:
3535
3636``` python
37- # !/usr/bin/env python
38- """ generated source for module HelloWorld
37+ # !/usr/bin/env python
38+ """ generated source for module HelloWorld
39+
40+ """
41+ # This is the HelloWorld class with a single method.
42+ class HelloWorld (object ):
43+ """ generated source for class HelloWorld
3944
4045 """
41- # This is the HelloWorld class with a single method.
42- class HelloWorld ( object ):
43- """ generated source for class HelloWorld
46+ @ classmethod
47+ def main ( cls , args ):
48+ """ generated source for method main
4449
4550 """
46- @ classmethod
47- def main (cls , args ):
48- """ generated source for method main
49-
50- """
51- print " Hello, world."
51+ print " Hello, world."
5252
53- if __name__ == ' __main__' :
54- import sys
55- HelloWorld.main(sys.argv)
53+ if __name__ == ' __main__' :
54+ import sys
55+ HelloWorld.main(sys.argv)
5656```
5757
You can’t perform that action at this time.
0 commit comments