Engine.newMString - create a new MString
|
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[];
|
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.
|
|
Download Help Document
Was this information helpful?