Update README.md

This commit is contained in:
Gabriel Pettier 2012-08-14 16:36:57 +03:00
parent 3ae545d21a
commit 2a25b4f37e
1 changed files with 11 additions and 11 deletions

View File

@ -11,15 +11,15 @@ Python module to access Java class as Python class, using JNI.
quick overview
--------------
>>> from jnius.reflect import autoclass
>>> autoclass('java.lang.System').out.println('Hello world')
Hello world
>>> from jnius.reflect import autoclass
>>> autoclass('java.lang.System').out.println('Hello world')
Hello world
>>>Stack = autoclass('java.util.Stack')
>>>stack = Stack()
>>>stack.push('hello')
>>>stack.push('world')
>>>print stack.pop()
world
>>>print stack.pop()
hello
>>>Stack = autoclass('java.util.Stack')
>>>stack = Stack()
>>>stack.push('hello')
>>>stack.push('world')
>>>print stack.pop()
world
>>>print stack.pop()
hello