| Contents | Index |
javaObject(ClassName, x1, ..., xn)
javaObject(ClassName, x1, ..., xn) calls the Java constructor for class ClassName with the argument list that matches x1, ..., xn, to return a new object. ClassName is a string.
If there is no constructor that matches the class name and argument list passed to javaObject, an error occurs.
For more information, see Using the javaObjectEDT Function.
The following example constructs and returns a Java object of class java.lang.String:
strObj = javaObject('java.lang.String','hello')
fieldnames | import | isjava | javaArray | javaMethod | javaObjectEDT | methods
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |