X1047: Set Array At Index

The following method takes in an int called size and a double called value For this question, create an array of doubles of length size. Then set the first item in the array to value. Finally, return that array.

Your Answer:

x
 
1
public double[] makeDoubleArray(int size, double value)
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.