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 trial
Lyric Abbott
35,595 PointsNeed help with master detail challenge
Using the DummyContent class from the Master-Detail project template, change the sample data to three different movie titles instead of "Item 1", "Item 2", and "Item 3".
my code:
addItem(new DummyItem("1", "The Avengers", "Whedon"));
addItem(new DummyItem("2", "The Hobbit", "Jackson"));
addItem(new DummyItem("3", "Ball of Fire", "Hawks"));
}
1 Answer
Chris Shaw
26,676 PointsHi Lyric,
You have one too many parameters in your constructor call, simply remove the last string you've passed in like the below code and you should be good.
addItem(new DummyItem("1", "The Avengers"));
addItem(new DummyItem("2", "The Hobbit"));
addItem(new DummyItem("3", "Ball of Fire"));