What does the following code do?

What does the following code do?
ArrayList> data =
new ArrayList>();
for (Books book : books) {
HashMap map = new HashMap();
map.put("title", book.getTitle());
map.put("author", book.getAuthor());
map.put("price", book.getPrice());
data.add(map);
}








a. It creates an adapter named data
b. It creates an adapter named map
c. It creates a variable named data that stores the data for an adapter
d. It creates a variable named map that stores the data for an adapter












Answer: C