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

  1. import root3.*;
  2.  
  3. public 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. }
  30.