public static boolean assertDescending(final double[] a){
  for (int i=1; i < a.length; i++) {
    Exam.assertTrue("Not descending:" + Arrays.toString(a),a[i - 1] >= a[i]);
  }
  return true;
}

public static boolean assertDescending ( final double [ ] a ) { for ( int i = 1 ; i < a . length ; i ++ ) { Exam . assertTrue ( "Not descending:" + Arrays . toString ( a ) , a [ i - 1 ] >= a [ i ] ) ; } return true ; }
check that array in descending order .
