Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

help me guys

Please fill in the correct answer in each blank provided below. Fill in the blank(s) below: Skip Quiz Review Video Get Help Next Question Add two method names to complete the code below. The first adds the value "Bad Guy" as a character to remove, and the second updates the back-end using the List called 'charactersToRemove':

charactersToRemove.__________("Bad Guy"); characters. ______________(ParseConstants.KEY_CHARACTER_NAMES, charactersToRemove);

m not getting you Jeff Lemay

Jeff Lemay
Jeff Lemay
14,266 Points

I thought the answer to the fill-in might be "str".

2 Answers

Ryan Ruscett
Ryan Ruscett
23,307 Points

Try add and remove

charactersToRemove.add("Bad Guy"); characters. remove(ParseConstants.KEY_CHARACTER_NAMES, charactersToRemove);

I can't link directly to the quiz you are taking so I can't get a reference of the question as to what topic was covered to see if this answer is write, but you can try it and let me know.

I assume it's a list so these are the two list methods I would use.

faraz
PLUS
faraz
Courses Plus Student 21,474 Points

It's actually add and removeAll because you have to add the entry to the list and then remove all of them in the list from Parse, as Ben shows in the previous video.