Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialG Deng
Java Web Development Techdegree Student 463 Pointscollections and flow
Steve check my code below it won't run. the second challenge is difficult i don't know which one to put in parentheses
1 Answer
Steven Deutsch
21,046 PointsHey G Deng,
You didn't post any code again. Remember to post and format your posts! This will it will make it very easy for me to help you. However, I can refer to your previous post.
// The second part of the challenge asks you to append the result of multiplier * 6 to your array
//We do this in the body of the loop
for multiplier in 1...10 {
results.append(multiplier * 6)
// you take what you want it to append to, in this case the array results
// you use the append method, append() to say "hey I want to add what's in these parentheses"
// then in the parentheses you put what you want to add, which is the multiplier times 6
}
Good Luck