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

abdulaziz alhejji
abdulaziz alhejji
743 Points

i keep getting this messege: ./PictureBook.java:3: error: missing return statement } ^ 1 error

what is the return statement needed to complete this challenge ?

PictureBook.java
public class PictureBook {
public String title () {
}
}

1 Answer

the challenge ask you to add member variable not a method

public class PictureBook {
  public String title;
}