´´´
public static int[] generateNumbers(int start, int end) { // case for empty array if (start > end) { int returnEmptyArray[] = {};