Question: I have an array of values

```
String [] str = { ONE, TWO, THREE };

```

and some key-value pairs stored in a map

```
Map<String, String> map;

```

How can I use the Stream API to get all entries from the map whose key is contained in the array?

Answer: 
You are trying to convert an string from your resources to an integer value. This is not possible!
To support multiple languages create a new string.xml with your desired locale.

See <https://developer.android.com/training/basics/supporting-devices/languages.html>
As You are trying to convert a string from your resources to an integer value. This is not possible, So Try to Change model class like this way

```
public class ContentsDep {
    int depimage;
    String depname;

    public int getDepimage() {return depimage;
    }

    public void setDepimage(int depimage) {this.depimage = depimage;
    }

    public void setDepname(String depname) {
        this.depname = depname;
    }

    public String getDepname() {return depname;}

}

```

Then Set value like this way

```
object01.setDepname(resources.getString(R.string.cultivation));

```