Creates a new instance of a Java class
class.new([arg1, [, arg2, ...]])
A mlist typed _JClass
A Scilab data or a mlist typed _JObj
Creates a new instance of a Java class obtained with jimport.
jimport java.lang.String; myString=String.new("The Java Interaction Mechanism in Scilab (JIMS) provides a native-level interface between the two Virtual Machines.") myString.concat(" foo") myString.contains("Scilab") // True myString.contains("Matrix") // False | ![]() | ![]() |
Version | Description |
5.5.0 | Function introduced. Based on the 'JIMS' module. The main difference in the behavior compared to the JIMS module is that jautoUnwrap is enabled by default. |