values - Maple Help

Online Help

All Products    Maple    MapleSim


Table.values

get values in Table

 

Calling Sequence

Description

Examples

Calling Sequence

java.util.Collection<Algebraic> values( )

Description

• 

The values function returns a java.util.Collection view of the values in the Table.

Examples

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