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

classes

anyone with an idea with whats going on

PictureBook.java
public class PictureBook {
        public String getTitle ;{
        String title = "";

    }
    return (title);
}

1 Answer

Fernando Batista
Fernando Batista
3,294 Points

Hi Brolin, Well the challenge tells you to just create a simple class, so you can solve the challenge with a code like:

public class PictureBook{

}

But, if you want to do more creating some atributes as you did, that's okay. The only problem with your code is the "return" statemente, it doesn't has to be there. If you delete this line, your code will be ok.

I hope it helps!