X1053: Create Array of Values

The following method takes in an int called size and an int called value. Create an array of integers of size size, and set every slot in the array to value. For example, if we called makeIntArray(5, 1) this method would return [1, 1, 1, 1, 1].

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.