newMString - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Engine.newMString

create a new MString

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Name newMString( String str ) throws MapleException

Parameters

str

-

string to be created

Description

• 

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

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 );

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

        System.out.println( str );

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

    }

}

Executing this code produces the following output.

"abcde"

abcde

See Also

ExternalCalling/Java/MapleException

OpenMaple

OpenMaple/Java/API

OpenMaple/Java/Engine

OpenMaple/Java/MString