SimpleJava.ecl 343 B

123456789
  1. /* The HPCC Systems platform comes bundled with a Java example class.
  2. Execute the following example in your favorite ECL IDE (or ECL Watch Playground)
  3. If you are running this example without the Java plugin installed, you will get syntax errors
  4. */
  5. IMPORT java;
  6. INTEGER add1(integer val) := IMPORT(java, 'JavaCat.add1:(I)I');
  7. add1(10);