mirror of https://github.com/kivy/pyjnius.git
Update README.md
This commit is contained in:
parent
3ae545d21a
commit
2a25b4f37e
22
README.md
22
README.md
|
@ -11,15 +11,15 @@ Python module to access Java class as Python class, using JNI.
|
||||||
quick overview
|
quick overview
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
>>> from jnius.reflect import autoclass
|
>>> from jnius.reflect import autoclass
|
||||||
>>> autoclass('java.lang.System').out.println('Hello world')
|
>>> autoclass('java.lang.System').out.println('Hello world')
|
||||||
Hello world
|
Hello world
|
||||||
|
|
||||||
>>>Stack = autoclass('java.util.Stack')
|
>>>Stack = autoclass('java.util.Stack')
|
||||||
>>>stack = Stack()
|
>>>stack = Stack()
|
||||||
>>>stack.push('hello')
|
>>>stack.push('hello')
|
||||||
>>>stack.push('world')
|
>>>stack.push('world')
|
||||||
>>>print stack.pop()
|
>>>print stack.pop()
|
||||||
world
|
world
|
||||||
>>>print stack.pop()
|
>>>print stack.pop()
|
||||||
hello
|
hello
|
Loading…
Reference in New Issue