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 trialmichael lee
5,179 PointsWhat am I doing wrong
I cannot pass and I don't know what I'm missing
public class PictureBook {
public String title(String member){
return member;
}
}
1 Answer
Lauren Moineau
9,483 PointsYou seem to have got confused by the term member variable in parentheses in the instructions.
Member variable is in parentheses here to let you know that it means the same as field (check the official documentation).
So it looks like you understood you had to create a method. You actually just need to declare a simple variable here, public, of type String, and named title. I hope this helps you complete the challenge :)
michael lee
5,179 Pointsmichael lee
5,179 Pointswow, its much easier than I thought, thanks for the explanation
Lauren Moineau
9,483 PointsLauren Moineau
9,483 PointsYou're welcome. We do tend to overcomplicate things :)