Engine.newTable - create a new Table
|
Calling Sequence
|
|
Table newTable() throws MapleException
|
|
Description
|
|
•
|
The newTable method creates a new empty Maple table. It returns a Table object.
|
|
|
Examples
|
|
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;
|
Algebraic key;
|
mapleArgs = new String[1];
|
mapleArgs[0] = "java";
|
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
|
null, null );
|
t = (Table)engine.newTable( );
|
System.out.println( t );
|
key = engine.newNumeric(10);
|
t.assign( key, engine.newNumeric( 100 ) );
|
System.out.println( t );
|
System.out.println( t.select( key ) );
|
}
|
}
|
|
|
Executing this code produces the following output.
table([])
|
table([(10)=100])
|
100
|
|
|
|
|
Download Help Document
Was this information helpful?