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 Self-Destructing Message Android App Adding Users Using Parse.com Creating a New User on Parse

Tom Wierman
Tom Wierman
3,002 Points

ParseUser newUser = new ParseUser();

I am trying to set the new user name in the challenge. I keep getting errors.

String userName = "User"; newUser.setUsername(userName);

These challenges are getting silly. You do not give a real IDE, and stupid errors are easy to get. The "compiler" does not give helpful guidance on where the error is.

At least let me skip a challenge so I can continue with the lessons.

1 Answer

The username and password are provided for you when the signUp() method is called. You don't need to declare a new String object as it already exists.

Your method should look like this:

protected void signUp(String username, String password) {
                ParseUser newUser = new ParseUser();
            newUser.setUsername(username);
          newUser.setPassword(password);
    }

I hope that works for you. I know how frustrating it is trying to get past a code challenge when you get stuck. A skip option would be nice at times!!

Steve.