Of course the method numbers() returns an array, it's just that you're doing nothing with it. Try this in main():
int[] array = numbers(); // obtain the array
System.out.println(Arrays.toString(array)); // now print it
That will show the array in the console.