home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / lib_show / cecil / JVM / Example2.java < prev    next >
Text File  |  1999-06-05  |  593b  |  31 lines

  1. import root2._any;
  2. import root2.root2;
  3. import root2.string;
  4.  
  5. public class Example2 {
  6.     /* To run this example, procede like this :
  7.  
  8.            compile_to_jvm root2
  9.            javac Example2.java
  10.            java Example2
  11.  
  12.     */
  13.   public static void main(String[] args) {
  14.       root2 root;
  15.       string eiffel_string;
  16.  
  17.       /* To initialize the Eiffel runtime :
  18.        */
  19.       _any._initialize_eiffel_runtime(args);
  20.  
  21.       /* Creation of the root object :
  22.        */
  23.       root = new root2();
  24.  
  25.       eiffel_string = (string)(root.get_string());
  26.  
  27.       root.put_string(eiffel_string);
  28.  
  29.   }
  30. }
  31.