0
/ 10.0
Return an array with the same contents, but double the size of the array passed in. The new slots will be filled with zeros. Use the...
Return an array with the same contents, but double the size of the array passed in. The new slots will be filled with zeros. Use the built in array functionality that is provided by Java.
Examples:
expandCapacity({2,3,0}) -> {2,3,0,0,0,0}
expandCapacity({}) -> {}
expandCapacity({6}) -> {6,0}
Your feedback will appear here when you check your answer.