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

Daniel Payr贸
Daniel Payr贸
4,019 Points

Android stage 5 Improving our code

i followed the instructions to make the code but it gives my a compilation error and i just cant figure it out, here i leave my code.

public class PictureBook {
  public String mTitle() { 
  }  
}

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

In this challenge you need to declare a variable, which you have almost done! But you have parentheses and curly braces that we need for methods, not variables. Remove those and you're left with the components of a variable definition, though you'll need to add a semicolon at the end. :)

K W
K W
3,736 Points

AWESOME!!!! I WAS STUCK TOO !