Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Eugene Cheng
8,540 PointsHow do I complete the challenge task 'Initialize the sports array with three names of sports.'
Hi
I am having complete the code challenge titled
'Declare an array of Strings named sports. Initialize the sports array with three names of sports. Use the curly brace syntax we learned in the video.
I am assuming the answer to be
String[] sports = { "baseball", "soccer, "Tennis" };
Am I doing something wrong?
Thanks in advance! Eugene
2 Answers

toddschneider
4,795 PointsString[] sports = {"football","golf","baseball",};
Hi Eugene I Just finished this my self and the only thing I could see is that you didn't place the coma after your last word. However That shouldn't make a difference due to the fact that you are at the end of the line in the first place. Actually I'am kinda perplex to be honest test out the code I put in my comment and see if it works for yeah.
Keep up the Good Work Todd(aka the fox)

Eugene Cheng
8,540 PointsHey Thanks a lot Todd! It works! Appreciate it! :)

toddschneider
4,795 PointsNo Problem Eugene Glad I could help !