Commit 3f36db7f authored by yazan.halloul's avatar yazan.halloul

Add crate range array commit

parent dcbf58bb
package data;
/**
* This class is to produce necessary test data.
*
* @author Ahmet Cengizhan Dirican
*/
public class RangeArrayBuilder {
public static int[] create(int start, int finish) {
int[] data = new int[finish - start + 1];
for (int i = start; i <= finish; i++) {
data[i - start] = i;
}
return data;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment