Skip to content

Commit fdcd677

Browse files
author
Troy Melhase
committed
More more play.
1 parent 4a759a0 commit fdcd677

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,48 @@ I'm in the process of finalizing the documentation and packaging a release. Tha
1010
Here's a very simple example. First we show the file:
1111

1212
```bash
13-
$ cat HelloWorld.java
13+
$ cat HelloWorld.java
1414
```
1515

1616
And 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

2727
Next we run our program:
2828

2929

3030
```bash
31-
$ j2py HelloWorld.java
31+
$ j2py HelloWorld.java
3232
```
3333

3434
And 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

0 commit comments

Comments
 (0)