Scilab-Branch-6.1-GIT
- Ajuda do Scilab
- Java from Scilab
- Getting started - Beginning
- Getting started - Second step
- jallowClassReloading
- jarray
- jautoTranspose
- jautoUnwrap
- jcast
- jcompile
- jcreatejar
- jdeff
- jdisableTrace
- jenableTrace
- jexists
- jgetclassname
- jgetfield
- jgetfields
- jgetinfo
- jgetmethods
- jimport
- jinvoke
- jinvoke_db
- jnewInstance
- jnull
- jremove
- jsetfield
- junwrap
- junwraprem
- jvoid
- jwrap
- jwrapinchar
- jwrapinfloat
- new
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
new
Creates a new instance of a Java class
Syntax
class.new([arg1, [, arg2, ...]])
Parameters
- class
A mlist typed _JClass
- argi
A Scilab data or a mlist typed _JObj
Description
Creates a new instance of a Java class obtained with jimport.
Examples
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
See also
- jnewInstance — Creates a new instance of a Java class
- jimport — Import a Java class
History
Versão | Descrição |
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. |
Report an issue | ||
<< jwrapinfloat | Java from Scilab | Interface Java >> |