Author:halw

Date:2008-10-03T17:31:47.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@69 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2008-10-03 17:31:47 +00:00
parent 954913e535
commit 6af5a29e65
6 changed files with 80 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
[[Property:weight|1]]
[[Property:uuid|90ef17d4-8e23-34dd-1cb8-488533561dd4]]
This example shows how to create an instance of the Java Virtual Machine and the creation of an object of type <eiffel>test</eiffel>, a java class reproduced below:
<code>
<code lang="java">
(Java Code)
class test
@@ -31,12 +31,14 @@ Since the example is using the `test.java' class, the first step is to compile t
===Running the example===
One the example is compiled, you can run it and here is the expected output:
<code>$ sample
<code>
$ sample
Creating instance of class `test'
Value of `my_integer' is 10
Value of `my_static_integer' is 0
Calling `my_method' with (2, "String test")
Value of `my_integer' after call to `my_method' is 2</code>
Value of `my_integer' after call to `my_method' is 2
</code>
===Code description===
<code>(Eiffel Code)