MATLAB BUILDER JA 2 Guide de l'utilisateur Page 181

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 180
1 2 ... 176 177 178 179 180 181 182 183 184 185 186 ... 291 292

Commentaires sur ces manuels

Pas de commentaire