question: public static Double [ ] createDoubleArrayFromTo ( Double min , Double max , Double step ) { if ( min > max ) { return null ; } int range = ( int ) Math . ceil ( ( max - min ) / step + 1 ) ; Double [ ] returnArray = new Double [ range ] ; for ( int i = 0 ; i < range ; i ++ ) { returnArray [ i ] = min + i * step ; } return returnArray ; }
target:  eg: createDoubleArrayFromTo(5, 6, 0.1) = [5, 5.1, 5.2, ..., 5.9, 6] <br/> eg: createDoubleArrayFromTo(10, 20, 3) = [10, 13, 16, 19, 22] <br/>