User`s guide
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