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
|
||||
--------------
|
||||
|
||||
>>> 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
|
Loading…
Reference in New Issue