question: public static boolean assertSorted ( final double [ ] a ) { for ( int i = 1 ; i < a . length ; i ++ ) { Exam . assertTrue ( "Not sorted:" + Arrays . toString ( a ) , a [ i - 1 ] < a [ i ] ) ; } return true ; }
target:  Check that array in ascending order.