mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 15:52:26 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user