Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


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

History

ВерсияОписание
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 из Scilab Java Interface >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:55:12 CEST 2024