X905: Create an array of ints

Write a method that takes as argument an integer size and returns an integer array of that size. The method should allocate a new array of int and return it. You do not need to initialize the array.

Examples:

makeArray(5) -> {0, 0, 0, 0, 0}

Your Answer:

Feedback

Your feedback will appear here when you check your answer.