question: public String toString ( ObjectMatrix3D matrix ) { StringBuffer buf = new StringBuffer ( ) ; boolean oldPrintShape = this . printShape ; this . printShape = false ; for ( int slice = 0 ; slice < matrix . slices ( ) ; slice ++ ) { if ( slice != 0 ) buf . append ( sliceSeparator ) ; buf . append ( toString ( matrix . viewSlice ( slice ) ) ) ; } this . printShape = oldPrintShape ; if ( printShape ) buf . insert ( 0 , shape ( matrix ) + "\n" ) ; return buf . toString ( ) ; }
target:  Returns a string representation of the given matrix.