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 trialdlpuxdzztg
8,243 PointsWhat do we put into 'values'?
I'm not sure how to complete this challenge; the challenge has only one line of code and none of the necessary parameters needed to justify the put() function. What do I do?
ContentValues values = new ContentValues();
values.put();
1 Answer
Jason Wiram
42,762 PointsThe question states:
We're going to use ContentValues to insert a pet into a table of lost pets. Put the following key/value paris into values: "name" = "Rover", "type" = "dog", "breed" = "mixed"
You need to put each of the three key/value pairs into values.
Example:
ContentValues values = new ContentValues();
values.put("firstKey", "firstValue");