Skip to content

Commit 4a759a0

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

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ There are [lots of docs](./java2python/tree/master/doc/index.md), [plenty of tes
77

88
I'm in the process of finalizing the documentation and packaging a release. That will be release 0.5 when it's done. If you're looking for old releases, check the [downloads](./java2python/downloads) link above.
99

10-
Hello, world example:
10+
Here's a very simple example. First we show the file:
1111

1212
```bash
1313
$ cat HelloWorld.java
1414
```
15+
16+
And we get this:
17+
1518
```java
1619
// This is the HelloWorld class with a single method.
1720
class HelloWorld {
@@ -21,9 +24,15 @@ Hello, world example:
2124
}
2225
```
2326

27+
Next we run our program:
28+
29+
2430
```bash
2531
$ j2py HelloWorld.java
2632
```
33+
34+
And we get this:
35+
2736
```python
2837
#!/usr/bin/env python
2938
""" generated source for module HelloWorld
@@ -45,3 +54,4 @@ Hello, world example:
4554
import sys
4655
HelloWorld.main(sys.argv)
4756
```
57+

0 commit comments

Comments
 (0)