import com.maplesoft.openmaple.*;
|
import com.maplesoft.externalcall.MapleException;
|
class Example
|
{
|
public static void main( String notused[] ) throws MapleException
|
{
|
String mapleArgs[];
|
Engine engine;
|
Table t;
|
Numeric n;
|
mapleArgs = new String[1];
|
mapleArgs[0] = "java";
|
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
|
null, null );
|
t = (Table)engine.evaluate( "table([(1)=100,(2)=200,(3)=300,(4)=400]):" );
|
n = engine.newNumeric( 1 );
|
System.out.println( t.has( n ) );
|
t.remove( n );
|
System.out.println( t.has( n ) );
|
n = engine.newNumeric( 2 );
|
System.out.println( t.has( n ) );
|
t.remove( n );
|
System.out.println( t.has( n ) );
|
n = engine.newNumeric( 3 );
|
System.out.println( t.has( n ) );
|
t.remove( n );
|
System.out.println( t.has( n ) );
|
t.remove( engine.newNumeric( 10 ) );
|
}
|
}
|