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 an Interactive Story App (Retired) The Model-View-Controller Pattern Implementing the Data Model

generate

i get nothing when i click Code , Generate it only shows me "Copyright".

1 Answer

Nathan Catania
Nathan Catania
4,140 Points

Code -> Generate will show only show "Copyright" when you have selected a line (or placed your cursor) outside the curly parenthesis for your class.

Try clicking on one of the variables (mText for example) and then trying Code -> Generate.

public class choice {
    private String mText;
    private int mNextPage;
    // Code -> Generate will work here
}
// Code -> Generate will not work here