PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/tutorial/cecil/JVM/Example2.java

http://github.com/tybor/Liberty
Java | 29 lines | 11 code | 6 blank | 12 comment | 0 complexity | 164a1b297f9b66f1de8166562311c384 MD5 | raw file
 1import root2.*;
 2
 3public class Example2 {
 4    /* To run this example, procede like this :
 5
 6           compile_to_jvm root2
 7           /bin/rm -f root2.class
 8           javac Example2.java
 9           java Example2
10
11    */
12  public static void main(String[] args) {
13      root2 root;
14      string eiffel_string;
15
16      /* To initialize the Eiffel runtime :
17       */
18      _any._initialize_eiffel_runtime(args);
19
20      /* Creation of the root object :
21       */
22      root = new root2();
23
24      eiffel_string = (string)(root.get_string());
25
26      root.put_string(eiffel_string);
27
28  }
29}