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.

Ricky Sparks
22,249 PointsMy Java Code wont pass?
public class MainListActivity extends ListActivity {
public String[] mSongTitles = { "Song1", "Song2", "Song3", "Song4" };
}
2 Answers

Chris Shaw
26,662 PointsHi Ricky,
If you're on task one it's only asking for 3 values in the array not four, simply drop Song4 from the array and it will pass.

Shane Desouza
3,523 PointsOn task one, it didn't say that there was a limit on the maximum number of values, but the minimum number is at least 3 variables. By the way, you should format the mSongTitles array to be a list of values, as below:
public String[] mSongTitles = { "Song1", "Song2", "Song3", "Song4" };
When I displayed it in the horizontal format, for some reason it didn't pass, so when I displayed it in the list view like above, it passed.
Hope this helped you.