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 (2014) Improving Our Code Creating a Class

Having difficulty with the return statement...what should it return?

Having difficulty with challenge task 2 of 2...what should it return?

1 Answer

Grigorij Schleifer
Grigorij Schleifer
10,365 Points

Hi Victor,

public class PictureBook {
// here we create a public class and name it PictureBook
// donΒ΄t forget the curly brackets
 public String mTitle; 
// here we create a public field variable of the class PictureBook, it is a String and name it mTitle
}

No return statement needed in this challenge :)

If you need more help, just shout out

Grigorij