Engine.newMString
create a new MString
Calling Sequence
Parameters
Description
Examples
Name newMString( String str ) throws MapleException
str
-
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 = { "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
Download Help Document