PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/tutorial/cecil/JVM/Example3.java

http://github.com/tybor/Liberty
Java | 29 lines | 11 code | 6 blank | 12 comment | 0 complexity | af4db970d93cd261682ba70dceaefdbf MD5 | raw file
 1import root3.*;
 2
 3public class Example3 {
 4    /* To run this example, procede like this :
 5
 6       compile_to_jvm root3
 7       /bin/rm -f root3.class
 8       javac Example3.java
 9       java Example3
10       
11    */
12    public static void main(String[] args) {
13	root3 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 root3();
23	
24	eiffel_string = (string)(root.get_string());
25	
26	root.put_string(eiffel_string);
27	
28  }
29}