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

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 :)