Table.values
get values in Table
Calling Sequence
Description
Examples
java.util.Collection<Algebraic> values( )
The values function returns a java.util.Collection view of the values in the Table.
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String[] mapleArgs = { "java" };
Engine engine = new Engine( mapleArgs, new EngineCallBacksDefault(), null, null );
Table t = (Table)engine.evaluate( "table([1=100,2=200,3=300,4=400]):" );
for (Algebraic e : t.values()) {
System.out.println( "Entry: " + e );
}
Executing this code produces the following output.
100
200
300
400
See Also
ExternalCalling/Java/MapleException
OpenMaple
OpenMaple/Java/Algebraic
OpenMaple/Java/API
OpenMaple/Java/Table
OpenMaple/Java/Table/assign
OpenMaple/Java/Table/remove
OpenMaple/Java/Table/select
Download Help Document