public Object clone(){
  try {
    DigitList other=(DigitList)super.clone();
    char[] newDigits=new char[digits.length];
    System.arraycopy(digits,0,newDigits,0,digits.length);
    other.digits=newDigits;
    other.tempBuffer=null;
    return other;
  }
 catch (  CloneNotSupportedException e) {
    throw new InternalError(e);
  }
}

public Object clone ( ) { try { DigitList other = ( DigitList ) super . clone ( ) ; char [ ] newDigits = new char [ digits . length ] ; System . arraycopy ( digits , 0 , newDigits , 0 , digits . length ) ; other . digits = newDigits ; other . tempBuffer = null ; return other ; } catch ( CloneNotSupportedException e ) { throw new InternalError ( e ) ; } }
creates a copy of this object .
