create a new MString - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : OpenMaple : Java Application Programming Interface : Engine Class : OpenMaple/Java/Engine/newMString

Engine.newMString - create a new MString

Calling Sequence

Name newMString( String str ) throws MapleException




string to be created



The newMString method creates an MString object representing the string specified by str.


import com.maplesoft.openmaple.*;

import com.maplesoft.externalcall.MapleException;

class Example


    public static void main( String notused[] ) throws MapleException


    String mapleArgs[];

    Engine engine;

    MString str;

    mapleArgs = new String[1];

    mapleArgs[0] = "java";

    engine = new Engine( mapleArgs, new EngineCallBacksDefault(),

        null, null );

    str = (MString)engine.newMString( "abcde" );

    System.out.println( str );

    System.out.println( str.stringValue() );



Executing this code produces the following output.



See Also

ExternalCalling/Java/MapleException, OpenMaple, OpenMaple/Java/API, OpenMaple/Java/Engine, OpenMaple/Java/MString

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam