INVOKE
and NEW
commands
INVOKE
and NEW
commands allow for complex Java object
manipulation.
NEW
is used to create (construct) a Java object.
nM> new java.lang.Double("10.12345678901234567") D nM> res d.getClass() O: D.GETCLASS() = class java.lang.Double
INVOKE
is used to call complex methods in a Java object.
nM> new java.lang.String("a string with more") str nM> invoke ,,str.regionMatches(0,"a string",0,8) Invoke: ANSWER = true
INVOKE
and NEW
can be very powerful tools for evaluating
and understanding how to use Java classes.
Java Experts Take Note: |
---|
![]() INVOKE and
NEW from strings into objects. This creates a number of limitations:
|