public static String arrayToString(float[] array,boolean breaks){
  StringBuilder sb=new StringBuilder();
  for (int x=0; x < array.length; x++) {
    sb.append(x + ": " + array[x]);
    if (breaks) {
      sb.append("\n");
    }
 else {
      if (x % 8 == 7) {
        sb.append("\n");
      }
 else {
        sb.append("\t");
      }
    }
  }
  return sb.toString();
}

public static String arrayToString ( float [ ] array , boolean breaks ) { StringBuilder sb = new StringBuilder ( ) ; for ( int x = 0 ; x < array . length ; x ++ ) { sb . append ( x + ": " + array [ x ] ) ; if ( breaks ) { sb . append ( "\n" ) ; } else { if ( x % 8 == 7 ) { sb . append ( "\n" ) ; } else { sb . append ( "\t" ) ; } } } return sb . toString ( ) ; }
utility to log the arrays of doubles with line breaks
