I have been trying to complete this homework assignment for a long time, but I can't figure this part out. Please help! Here are the instructions.
"Write Java code to complete the task below using a “for each” loop.
Task: Initialize each element of an array of real numbers to the value 10."
Ok, so I don't quite understand what this is telling me to do. Am i supposed to create an array and then set each element in that array to the number 10? How do I do that using a for loop?