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

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

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

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