MATLAB BUILDER JA 2 Betriebsanweisung Seite 181

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 180
Using Class Methods
public Object clone()
Input Parameters
None
Exceptions
The clone method throws the following exception:
java.lang.CloneNotSupportedException
The object’s class does not implement the Cloneable in terf ace.
Example Cloning a Logical Array Object
Create a clone of MWLogicalArray object A:
boolean[][] Adata = {{true, false, false},
{false, true, false}};
MWLogicalArray A = new MWLogicalArray(Adata);
Object C = A.clone();
System.out.println("Clone of logical matrix A is:");
System.out.println(C.toString());
When run, the example displays this output:
Clone of logical matrix A is:
100
010
compareTo. MWLogicalArray inherits this method from the MWArray class.
equals.
MWLogicalArray inherits this method from the MWArray class.
4-105
Seitenansicht 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare