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.

Android Build a Simple Android App with Java Improving Our Code Creating a New Class

michael lee
michael lee
5,179 Points

What am I doing wrong

I cannot pass and I don't know what I'm missing

PictureBook.java
public class PictureBook {
public String title(String member){
  return member;
}
}

1 Answer

You 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
michael lee
5,179 Points

wow, its much easier than I thought, thanks for the explanation

You're welcome. We do tend to overcomplicate things :)