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 trialBrolin Osindi
1,830 Pointsclasses
anyone with an idea with whats going on
public class PictureBook {
public String getTitle ;{
String title = "";
}
return (title);
}
1 Answer
Fernando Batista
3,295 PointsHi 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!