Basic Arrays in a Java Program
This question was put on hold because of "unclear what you're asking" but IMO it's perfectly clear what he's asking, as evidenced by multiple helpful replies. He says he's in a class and supposed to be writing an example using arrays and loops, shows how far he got, and clearly doesn't know how to use loops because his attempt doesn't have any. He needed to be shown how to loop through an array.
It's not a perfectly written question, but it's pretty clear what help he needed. It's kind of moot because has several acceptable answers already anyhow, I'm just surprised that people seem so trigger-happy with on-hold status when there's no real problem.