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

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,295 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!